#5F9D1F#5F9D1F

#5F9D1F is a light, vivid yellow-green. Relative luminance 0.266; OKLCH L 63.0% C 0.165 H 133.0°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5F9D1F
RGBrgb(95, 157, 31)
HSLhsl(90, 67%, 37%)
HSVhsv(90, 80%, 62%)
CMYKcmyk(39.5%, 0%, 80.3%, 38.4%)
CIE-LABlab(58.64, -39.90, 54.58)
CIE-LCHlch(58.64, 67.61, 126.17°)
OKLaboklab(63.01% -0.1126 0.1206)
OKLCHoklch(63.01% 0.165 133)
XYZxyz(17.0234, 26.6450, 5.5421)
Luminance0.2665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9D1F #5D1F9D
analogous
#9D9C1F #5F9D1F #209D1F
triadic
#5F9D1F #1F5F9D #9D1F5F
tetradic
#5F9D1F #1F9D9C #5D1F9D #9D1F20
square
#5F9D1F #1F9D9C #5D1F9D #9D1F20
split-complementary
#5F9D1F #1F209D #9C1F9D
monochromatic
#21370B #406A15 #5F9D1F #7ED029 #9CDE58

Accessibility & contrast

On white

3.32
#5F9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#5F9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9D1F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9D1F#FFFFFF#000000##000000
##5F9D1F1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#9B8B2D
Tritanopia (blue-blind)
#5F9686
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5f9d1f;
/* rgb */ color: rgb(95, 157, 31);
/* oklch */ color: oklch(63.0% 0.165 133.0);
Tailwind
colors: {
  custom: {
    50: '#92ba66',
    500: '#5f9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f9d1f;
$custom-light: #92ba66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9d1f",
  "rgb": {
    "r": 95,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 89.524,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63014,
    "c": 0.16496,
    "h": 133
  },
  "luminance": 0.26646
}

Semantic roles & 50–950 ramp

primary
#5F9D1F
secondary
#8B56C2
accent
#3EEA93
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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