#5F841C#5F841C

#5F841C is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.135 H 127.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5F841C
RGBrgb(95, 132, 28)
HSLhsl(81, 65%, 31%)
HSVhsv(81, 79%, 52%)
CMYKcmyk(28%, 0%, 78.8%, 48.2%)
CIE-LABlab(50.71, -28.74, 48.12)
CIE-LCHlch(50.71, 56.05, 120.85°)
OKLaboklab(56.54% -0.0826 0.1065)
OKLCHoklch(56.54% 0.135 127.8)
XYZxyz(13.1802, 19.0190, 4.0750)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F841C #411C84
analogous
#84751C #5F841C #2B841C
triadic
#5F841C #1C5F84 #841C5F
tetradic
#5F841C #1C8475 #411C84 #841C2B
square
#5F841C #1C8475 #411C84 #841C2B
split-complementary
#5F841C #1C2B84 #751C84
monochromatic
#161F07 #3B5211 #5F841C #83B627 #A3D743

Accessibility & contrast

On white

4.37
#5F841C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5F841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F841C
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F841C#FFFFFF#000000##000000
##5F841C1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A02
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#637E71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f841c;
/* rgb */ color: rgb(95, 132, 28);
/* oklch */ color: oklch(56.5% 0.135 127.8);
Tailwind
colors: {
  custom: {
    50: '#90a861',
    500: '#5f841c',
    950: '#000000',
  },
}
SCSS
$custom: #5f841c;
$custom-light: #90a861;
$custom-dark: #000000;
JSON
{
  "hex": "#5f841c",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 81.346,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56537,
    "c": 0.13479,
    "h": 127.8
  },
  "luminance": 0.19019
}

Semantic roles & 50–950 ramp

primary
#5F841C
secondary
#6D45B7
accent
#40E87C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F841C

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

Preview Lab → · Contrast checker → · Palette generator →

#5F841C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva