#52871D#52871D

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

Color values

HEX#52871D
RGBrgb(82, 135, 29)
HSLhsl(90, 65%, 32%)
HSVhsv(90, 79%, 53%)
CMYKcmyk(39.3%, 0%, 78.5%, 47.1%)
CIE-LABlab(50.93, -35.15, 47.72)
CIE-LCHlch(50.93, 59.27, 126.37°)
OKLaboklab(56.52% -0.099 0.1062)
OKLCHoklch(56.52% 0.145 133)
XYZxyz(12.3652, 19.2099, 4.2185)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52871D #521D87
analogous
#87871D #52871D #1D871D
triadic
#52871D #1D5287 #871D52
tetradic
#52871D #1D8787 #521D87 #871D1D
square
#52871D #1D8787 #521D87 #871D1D
split-complementary
#52871D #1D1D87 #871D87
monochromatic
#152207 #335512 #52871D #71B928 #8FD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52871D#FFFFFF#000000##000000
##52871D1.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)
#8D7C03
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#528173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #52871d;
/* rgb */ color: rgb(82, 135, 29);
/* oklch */ color: oklch(56.5% 0.145 133.0);
Tailwind
colors: {
  custom: {
    50: '#87aa62',
    500: '#52871d',
    950: '#000000',
  },
}
SCSS
$custom: #52871d;
$custom-light: #87aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#52871d",
  "rgb": {
    "r": 82,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 90,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56522,
    "c": 0.14518,
    "h": 133
  },
  "luminance": 0.1921
}

Semantic roles & 50–950 ramp

primary
#52871D
secondary
#8046B9
accent
#40E894
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #52871D

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

Preview Lab → · Contrast checker → · Palette generator →

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