#52821B#52821B

#52821B is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.140 H 131.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#52821B
RGBrgb(82, 130, 27)
HSLhsl(88, 66%, 31%)
HSVhsv(88, 79%, 51%)
CMYKcmyk(36.9%, 0%, 79.2%, 49%)
CIE-LABlab(49.30, -33.02, 46.85)
CIE-LCHlch(49.30, 57.32, 125.17°)
OKLaboklab(55.18% -0.0934 0.104)
OKLCHoklch(55.18% 0.14 131.9)
XYZxyz(11.6600, 17.8378, 3.8654)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52821B #4B1B82
analogous
#827E1B #52821B #1F821B
triadic
#52821B #1B5282 #821B52
tetradic
#52821B #1B827E #4B1B82 #821B1F
square
#52821B #1B827E #4B1B82 #821B1F
split-complementary
#52821B #1B1F82 #7E1B82
monochromatic
#121D06 #324F10 #52821B #72B526 #91D740

Accessibility & contrast

On white

4.60
#52821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#52821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #52821B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52821B#FFFFFF#000000##FFFFFF
##52821B1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887802
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#537C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #52821b;
/* rgb */ color: rgb(82, 130, 27);
/* oklch */ color: oklch(55.2% 0.140 131.9);
Tailwind
colors: {
  custom: {
    50: '#87a660',
    500: '#52821b',
    950: '#000000',
  },
}
SCSS
$custom: #52821b;
$custom-light: #87a660;
$custom-dark: #000000;
JSON
{
  "hex": "#52821b",
  "rgb": {
    "r": 82,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 87.961,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55184,
    "c": 0.1398,
    "h": 131.9
  },
  "luminance": 0.17838
}

Semantic roles & 50–950 ramp

primary
#52821B
secondary
#7943B6
accent
#3FE98E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #52821B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#52821B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva