#5F7B13#5F7B13

#5F7B13 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 54.2% C 0.128 H 124.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5F7B13
RGBrgb(95, 123, 19)
HSLhsl(76, 73%, 28%)
HSVhsv(76, 85%, 48%)
CMYKcmyk(22.8%, 0%, 84.6%, 51.8%)
CIE-LABlab(47.81, -24.77, 48.29)
CIE-LCHlch(47.81, 54.27, 117.16°)
OKLaboklab(54.17% -0.0725 0.1053)
OKLCHoklch(54.17% 0.128 124.5)
XYZxyz(11.9199, 16.6457, 3.2009)
Luminance0.1665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7B13 #2F137B
analogous
#7B6313 #5F7B13 #2B7B13
triadic
#5F7B13 #135F7B #7B135F
tetradic
#5F7B13 #137B63 #2F137B #7B132B
square
#5F7B13 #137B63 #2F137B #7B132B
split-complementary
#5F7B13 #132B7B #63137B
monochromatic
#141B04 #36460B #5F7B13 #88B01B #AEDE2A

Accessibility & contrast

On white

4.85
#5F7B13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5F7B13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7B13
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7B13#FFFFFF#000000##FFFFFF
##5F7B131.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#647568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f7b13;
/* rgb */ color: rgb(95, 123, 19);
/* oklch */ color: oklch(54.2% 0.128 124.5);
Tailwind
colors: {
  custom: {
    50: '#90a15c',
    500: '#5f7b13',
    950: '#000000',
  },
}
SCSS
$custom: #5f7b13;
$custom-light: #90a15c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7b13",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 19
  },
  "hsl": {
    "h": 76.154,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.12787,
    "h": 124.5
  },
  "luminance": 0.16646
}

Semantic roles & 50–950 ramp

primary
#5F7B13
secondary
#5939B1
accent
#38F069
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F04
muted
#7E7E79

Preview Lab

Preview with #5F7B13

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

Preview Lab → · Contrast checker → · Palette generator →

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