#5F9E1F#5F9E1F

#5F9E1F is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.3% C 0.166 H 133.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5F9E1F
RGBrgb(95, 158, 31)
HSLhsl(90, 67%, 37%)
HSVhsv(90, 80%, 62%)
CMYKcmyk(39.9%, 0%, 80.4%, 38%)
CIE-LABlab(58.96, -40.33, 54.87)
CIE-LCHlch(58.96, 68.10, 126.31°)
OKLaboklab(63.27% -0.1137 0.1212)
OKLCHoklch(63.27% 0.166 133.2)
XYZxyz(17.1932, 26.9847, 5.5987)
Luminance0.2699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9E1F #5E1F9E
analogous
#9E9E1F #5F9E1F #1F9E1F
triadic
#5F9E1F #1F5F9E #9E1F5F
tetradic
#5F9E1F #1F9E9E #5E1F9E #9E1F1F
square
#5F9E1F #1F9E9E #5E1F9E #9E1F1F
split-complementary
#5F9E1F #1F1F9E #9E1F9E
monochromatic
#21380B #406B15 #5F9E1F #7ED129 #9CDE59

Accessibility & contrast

On white

3.28
#5F9E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#5F9E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9E1F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9E1F#FFFFFF#000000##000000
##5F9E1F1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#5F9787
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5f9e1f;
/* rgb */ color: rgb(95, 158, 31);
/* oklch */ color: oklch(63.3% 0.166 133.2);
Tailwind
colors: {
  custom: {
    50: '#92bb66',
    500: '#5f9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f9e1f;
$custom-light: #92bb66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9e1f",
  "rgb": {
    "r": 95,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 89.764,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63272,
    "c": 0.16619,
    "h": 133.2
  },
  "luminance": 0.26986
}

Semantic roles & 50–950 ramp

primary
#5F9E1F
secondary
#8C56C2
accent
#3EEA93
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5F9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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