#52851F#52851F

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

Color values

HEX#52851F
RGBrgb(82, 133, 31)
HSLhsl(90, 62%, 32%)
HSVhsv(90, 77%, 52%)
CMYKcmyk(38.3%, 0%, 76.7%, 47.8%)
CIE-LABlab(50.30, -34.13, 46.40)
CIE-LCHlch(50.30, 57.60, 126.34°)
OKLaboklab(56.01% -0.0961 0.1037)
OKLCHoklch(56.01% 0.141 132.8)
XYZxyz(12.1144, 18.6673, 4.2609)
Luminance0.1867 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52851F #521F85
analogous
#85851F #52851F #1F851F
triadic
#52851F #1F5285 #851F52
tetradic
#52851F #1F8585 #521F85 #851F1F
square
#52851F #1F8585 #521F85 #851F1F
split-complementary
#52851F #1F1F85 #851F85
monochromatic
#152208 #335313 #52851F #71B72B #8FD54A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52851F#FFFFFF#000000##000000
##52851F1.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)
#8B7A09
Deuteranopia (green-blind)
#847629
Tritanopia (blue-blind)
#537F72
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #52851f;
/* rgb */ color: rgb(82, 133, 31);
/* oklch */ color: oklch(56.0% 0.141 132.8);
Tailwind
colors: {
  custom: {
    50: '#87a963',
    500: '#52851f',
    950: '#000000',
  },
}
SCSS
$custom: #52851f;
$custom-light: #87a963;
$custom-dark: #000000;
JSON
{
  "hex": "#52851f",
  "rgb": {
    "r": 82,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56006,
    "c": 0.14141,
    "h": 132.8
  },
  "luminance": 0.18668
}

Semantic roles & 50–950 ramp

primary
#52851F
secondary
#8049B7
accent
#43E594
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #52851F

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

Preview Lab → · Contrast checker → · Palette generator →

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