#5F8415#5F8415

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

Color values

HEX#5F8415
RGBrgb(95, 132, 21)
HSLhsl(80, 73%, 30%)
HSVhsv(80, 84%, 52%)
CMYKcmyk(28%, 0%, 84.1%, 48.2%)
CIE-LABlab(50.67, -29.08, 50.27)
CIE-LCHlch(50.67, 58.07, 120.05°)
OKLaboklab(56.5% -0.084 0.1099)
OKLCHoklch(56.5% 0.138 127.4)
XYZxyz(13.1060, 18.9893, 3.6841)
Luminance0.1899 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8415 #3A1584
analogous
#847115 #5F8415 #288415
triadic
#5F8415 #155F84 #84155F
tetradic
#5F8415 #158471 #3A1584 #841528
square
#5F8415 #158471 #3A1584 #841528
split-complementary
#5F8415 #152884 #711584
monochromatic
#131A04 #394F0D #5F8415 #85B91D #A6DF35

Accessibility & contrast

On white

4.38
#5F8415 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8415#FFFFFF#000000##000000
##5F84151.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#637E70
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f8415;
/* rgb */ color: rgb(95, 132, 21);
/* oklch */ color: oklch(56.5% 0.138 127.4);
Tailwind
colors: {
  custom: {
    50: '#90a85e',
    500: '#5f8415',
    950: '#000000',
  },
}
SCSS
$custom: #5f8415;
$custom-light: #90a85e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8415",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 21
  },
  "hsl": {
    "h": 80,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.56498,
    "c": 0.13832,
    "h": 127.4
  },
  "luminance": 0.1899
}

Semantic roles & 50–950 ramp

primary
#5F8415
secondary
#663CB9
accent
#39EF75
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8415

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

Preview Lab → · Contrast checker → · Palette generator →

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