#52851B#52851B

#52851B is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 56.0% C 0.144 H 132.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#52851B
RGBrgb(82, 133, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 80%, 52%)
CMYKcmyk(38.3%, 0%, 79.7%, 47.8%)
CIE-LABlab(50.27, -34.37, 47.77)
CIE-LCHlch(50.27, 58.85, 125.73°)
OKLaboklab(55.98% -0.0971 0.1059)
OKLCHoklch(55.98% 0.144 132.5)
XYZxyz(12.0649, 18.6475, 4.0003)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52851B #4E1B85
analogous
#85831B #52851B #1D851B
triadic
#52851B #1B5285 #851B52
tetradic
#52851B #1B8583 #4E1B85 #851B1D
square
#52851B #1B8583 #4E1B85 #851B1D
split-complementary
#52851B #1B1D85 #831B85
monochromatic
#131F06 #335211 #52851B #71B825 #90D942

Accessibility & contrast

On white

4.44
#52851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#52851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52851B
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52851B#FFFFFF#000000##000000
##52851B1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#537F71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #52851b;
/* rgb */ color: rgb(82, 133, 27);
/* oklch */ color: oklch(56.0% 0.144 132.5);
Tailwind
colors: {
  custom: {
    50: '#87a961',
    500: '#52851b',
    950: '#000000',
  },
}
SCSS
$custom: #52851b;
$custom-light: #87a961;
$custom-dark: #000000;
JSON
{
  "hex": "#52851b",
  "rgb": {
    "r": 82,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 88.868,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55979,
    "c": 0.1437,
    "h": 132.5
  },
  "luminance": 0.18648
}

Semantic roles & 50–950 ramp

primary
#52851B
secondary
#7C44B8
accent
#3FE991
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #52851B

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

Preview Lab → · Contrast checker → · Palette generator →

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