#52871F#52871F

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

Color values

HEX#52871F
RGBrgb(82, 135, 31)
HSLhsl(91, 63%, 33%)
HSVhsv(91, 77%, 53%)
CMYKcmyk(39.3%, 0%, 77%, 47.1%)
CIE-LABlab(50.94, -35.02, 47.03)
CIE-LCHlch(50.94, 58.64, 126.67°)
OKLaboklab(56.54% -0.0986 0.105)
OKLCHoklch(56.54% 0.144 133.2)
XYZxyz(12.3908, 19.2201, 4.3530)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52871F #541F87
analogous
#86871F #52871F #1F8720
triadic
#52871F #1F5287 #871F52
tetradic
#52871F #1F8687 #541F87 #87201F
square
#52871F #1F8687 #541F87 #87201F
split-complementary
#52871F #201F87 #871F86
monochromatic
#162308 #345514 #52871F #70B92A #8FD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52871F#FFFFFF#000000##000000
##52871F1.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)
#8D7C08
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#528173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #52871f;
/* rgb */ color: rgb(82, 135, 31);
/* oklch */ color: oklch(56.5% 0.144 133.2);
Tailwind
colors: {
  custom: {
    50: '#87aa63',
    500: '#52871f',
    950: '#000000',
  },
}
SCSS
$custom: #52871f;
$custom-light: #87aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#52871f",
  "rgb": {
    "r": 82,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 90.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56536,
    "c": 0.14403,
    "h": 133.2
  },
  "luminance": 0.19221
}

Semantic roles & 50–950 ramp

primary
#52871F
secondary
#824AB8
accent
#42E695
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #52871F

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

Preview Lab → · Contrast checker → · Palette generator →

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