Skip to content

#527f21

a dark, vivid green · neutral · closest name: Olive Drab

RGB
82, 127, 33
HSL
89°, 59%, 31%
CMYK
35, 0, 74, 50
Luminance
0.1708

At a glance

Every number on this page in one read: what #527f21 is made of, how bright it looks, and which way it leans.

Hex
#527f21
Hue
89°
green
Saturation
59%
vivid
Lightness
31%
dark
Brightness
50%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1708
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Green
Tone
Vivid
Best ink
White
4.75:1
Closest name
Olive Drab
ΔE2000 7
Where it sits
Hue89° of 360°
Saturation59%
Lightness31%
Temperature
Warm ← → Cool49% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#527f21
RGBrgb(82, 127, 33)
HSLhsl(89, 59%, 31%)
CMYKcmyk(35%, 0%, 74%, 50%)
LABlab(48.4 -31.3 43.7)
LCHlch(48.4 53.8 125.6)
OKLCHoklch(0.544 0.132 131.9)
Decimal5406497
Display P3color(display-p3 0.322 0.498 0.129)

Copy-ready code

/* CSS */
color: #527f21;
background-color: #527f21;
/* Tailwind (arbitrary) */
class="text-[#527f21] bg-[#527f21]"
/* SCSS */
$brand: #527f21;
/* SwiftUI */
Color(red: 0.322, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#527f21")
/* Flutter */
Color(0xFF527F21)
/* Python / OpenCV (BGR) */
(33, 127, 82)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #527f21 · 4.75:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.75:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.42:1
AA fail · AA large pass · AAA fail
Reading the other direction: #527f21 as text scores 4.75:1 on white and 4.42:1 on black.

Accessibility — WCAG contrast

Aa
#527f21 on white: 4.75:1
AA ✓ pass · AA-large · AAA
Aa
#527f21 on black: 4.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #857511
deuteranopia · #7E722A
tritanopia · #537A6D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #527f21 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8FBF4
#F0F7E9
#DFEFCD
#C8E8A6
#ADDC79
#92D14D
#7EC232
#69A22A
#527f21
#3F5E1C
#273B12
Base = 800Lightest = 50 · #F8FBF4Darkest = 950 · #273B12
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F0F7E9;
  --brand-200: #DFEFCD;
  --brand-300: #C8E8A6;
  --brand-400: #ADDC79;
  --brand-500: #92D14D;
  --brand-600: #7EC232;
  --brand-700: #69A22A;
  --brand-800: #527f21;
  --brand-900: #3F5E1C;
  --brand-950: #273B12;
  --brand: #527f21;
  --brand-ink: #ffffff;
}

Colors that work with #527f21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7FAF4
Tinted page background
Border#D7EDC0
Hairlines and dividers
Muted text#749B4B
Captions on the surface
Accent#351E82
Second voice, not a rival
Dark variant#41651A
Hover, pressed, headers
Light variant#F3FAEB
Selected rows, tints
Dark surface#1C2414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #527f21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#4E217F
Analogous left#7F7D21
Analogous right#237F21
Split-complement 1#21237F
Split-complement 2#7D217F
Triadic 1#21527F
Triadic 2#7F2152
Tetradic#217F7D

RGB percentages

Red32.2%
Green49.8%
Blue12.9%

CMYK percentages

Cyan35.4%
Magenta0.0%
Yellow74.0%
Key (black)50.2%

Color previews

#527f21 text on a black background

contrast 4.42:1

Card sample

#527f21 text on a white background

contrast 4.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #527f21;
Background color
Panel with #527f21 background
background-color: #527f21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #527f21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(82, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #527f21;
background: linear-gradient(135deg, #527f21, #217F2F);

Monochromatic scale

Palettes built from #527f21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#527f21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#527f21, answered

What color is #527f21?

#527f21 is a dark vivid green, closest to Olive Drab (ΔE2000 7). It sits at 89° on the hue wheel with 59% saturation and 31% lightness, which reads as neutral.

What is the RGB value of #527f21?

rgb(82, 127, 33) — 82 red, 127 green and 33 blue out of 255, or 32.2% / 49.8% / 12.9% by channel.

Is #527f21 a light or a dark color?

It is a dark color. Relative luminance is 0.1708 and perceived brightness is 42%, so white text on it reaches 4.75:1.

Should I use black or white text on #527f21?

White. It scores 4.75:1 against #527f21, versus 4.42:1 for black — AA at any size.

What is the complementary color of #527f21?

#4E217F sits directly opposite on the wheel. Softer options are the split-complements #21237F and #7D217F, which give the same contrast with far less vibration.

What colors go well with #527f21?

For interface work: #F7FAF4 as the surface, #D7EDC0 for borders, #749B4B for secondary text, #351E82 as an accent and #41651A for hover and pressed states. For a palette, the analogous pair #7F7D21 and #237F21 stays calm, while #4E217F is the loudest partner.

What is #527f21 in CMYK for printing?

cmyk(35%, 0%, 74%, 50%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #527f21 warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #757F21; nudged cooler, #2E811F.

Work with #527f21 in the Color Lab