#52831B#52831B

#52831B is a mid, vivid yellow-green. Relative luminance 0.181; OKLCH L 55.4% C 0.141 H 132.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#52831B
RGBrgb(82, 131, 27)
HSLhsl(88, 66%, 31%)
HSVhsv(88, 79%, 51%)
CMYKcmyk(37.4%, 0%, 79.4%, 48.6%)
CIE-LABlab(49.62, -33.47, 47.16)
CIE-LCHlch(49.62, 57.83, 125.37°)
OKLaboklab(55.45% -0.0947 0.1047)
OKLCHoklch(55.45% 0.141 132.1)
XYZxyz(11.7937, 18.1051, 3.9099)
Luminance0.1811 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52831B #4C1B83
analogous
#83801B #52831B #1E831B
triadic
#52831B #1B5283 #831B52
tetradic
#52831B #1B8380 #4C1B83 #831B1E
square
#52831B #1B8380 #4C1B83 #831B1E
split-complementary
#52831B #1B1E83 #801B83
monochromatic
#121E06 #325011 #52831B #72B625 #91D841

Accessibility & contrast

On white

4.54
#52831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#52831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52831B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52831B#FFFFFF#000000##000000
##52831B1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#827526
Tritanopia (blue-blind)
#537D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #52831b;
/* rgb */ color: rgb(82, 131, 27);
/* oklch */ color: oklch(55.4% 0.141 132.1);
Tailwind
colors: {
  custom: {
    50: '#87a760',
    500: '#52831b',
    950: '#000000',
  },
}
SCSS
$custom: #52831b;
$custom-light: #87a760;
$custom-dark: #000000;
JSON
{
  "hex": "#52831b",
  "rgb": {
    "r": 82,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 88.269,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55449,
    "c": 0.14111,
    "h": 132.1
  },
  "luminance": 0.18106
}

Semantic roles & 50–950 ramp

primary
#52831B
secondary
#7A43B6
accent
#3FE98F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #52831B

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

Preview Lab → · Contrast checker → · Palette generator →

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