#52871C#52871C

#52871C is a mid, vivid yellow-green. Relative luminance 0.192; OKLCH L 56.5% C 0.146 H 132.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#52871C
RGBrgb(82, 135, 28)
HSLhsl(90, 66%, 32%)
HSVhsv(90, 79%, 53%)
CMYKcmyk(39.3%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.93, -35.21, 48.06)
CIE-LCHlch(50.93, 59.58, 126.22°)
OKLaboklab(56.52% -0.0993 0.1067)
OKLCHoklch(56.52% 0.146 132.9)
XYZxyz(12.3531, 19.2051, 4.1544)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52871C #511C87
analogous
#87871C #52871C #1C871C
triadic
#52871C #1C5287 #871C52
tetradic
#52871C #1C8787 #511C87 #871C1C
square
#52871C #1C8787 #511C87 #871C1C
split-complementary
#52871C #1C1C87 #871C87
monochromatic
#142207 #335411 #52871C #71BA27 #8FD845

Accessibility & contrast

On white

4.34
#52871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#52871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52871C
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52871C#FFFFFF#000000##000000
##52871C1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C01
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#528173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #52871c;
/* rgb */ color: rgb(82, 135, 28);
/* oklch */ color: oklch(56.5% 0.146 132.9);
Tailwind
colors: {
  custom: {
    50: '#88aa61',
    500: '#52871c',
    950: '#000000',
  },
}
SCSS
$custom: #52871c;
$custom-light: #88aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#52871c",
  "rgb": {
    "r": 82,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 89.72,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56516,
    "c": 0.14573,
    "h": 132.9
  },
  "luminance": 0.19206
}

Semantic roles & 50–950 ramp

primary
#52871C
secondary
#7F45BA
accent
#3FE993
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #52871C

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

Preview Lab → · Contrast checker → · Palette generator →

#52871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva