#52971F#52971F

#52971F is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 60.8% C 0.164 H 135.4°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#52971F
RGBrgb(82, 151, 31)
HSLhsl(95, 66%, 36%)
HSVhsv(95, 79%, 59%)
CMYKcmyk(45.7%, 0%, 79.5%, 40.8%)
CIE-LABlab(56.11, -41.88, 51.99)
CIE-LCHlch(56.11, 66.75, 128.85°)
OKLaboklab(60.77% -0.117 0.1154)
OKLCHoklch(60.77% 0.164 135.4)
XYZxyz(14.7933, 24.0251, 5.1539)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52971F #641F97
analogous
#8E971F #52971F #1F9728
triadic
#52971F #1F5297 #971F52
tetradic
#52971F #1F8E97 #641F97 #97281F
square
#52971F #1F8E97 #641F97 #97281F
split-complementary
#52971F #281F97 #971F8E
monochromatic
#1B310A #366415 #52971F #6ECA29 #8EDC54

Accessibility & contrast

On white

3.62
#52971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#52971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52971F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52971F#FFFFFF#000000##000000
##52971F1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#94842C
Tritanopia (blue-blind)
#509181
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #52971f;
/* rgb */ color: rgb(82, 151, 31);
/* oklch */ color: oklch(60.8% 0.164 135.4);
Tailwind
colors: {
  custom: {
    50: '#89b665',
    500: '#52971f',
    950: '#000000',
  },
}
SCSS
$custom: #52971f;
$custom-light: #89b665;
$custom-dark: #000000;
JSON
{
  "hex": "#52971f",
  "rgb": {
    "r": 82,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 94.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60771,
    "c": 0.16436,
    "h": 135.4
  },
  "luminance": 0.24026
}

Semantic roles & 50–950 ramp

primary
#52971F
secondary
#9152BF
accent
#3FE9A1
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #52971F

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

Preview Lab → · Contrast checker → · Palette generator →

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