#5F7A16#5F7A16

#5F7A16 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.125 H 124.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5F7A16
RGBrgb(95, 122, 22)
HSLhsl(76, 69%, 28%)
HSVhsv(76, 82%, 48%)
CMYKcmyk(22.1%, 0%, 82%, 52.2%)
CIE-LABlab(47.51, -24.14, 47.12)
CIE-LCHlch(47.51, 52.94, 117.13°)
OKLaboklab(53.93% -0.0705 0.1034)
OKLCHoklch(53.93% 0.125 124.3)
XYZxyz(11.8238, 16.4098, 3.3034)
Luminance0.1641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7A16 #31167A
analogous
#7A6316 #5F7A16 #2D7A16
triadic
#5F7A16 #165F7A #7A165F
tetradic
#5F7A16 #167A63 #31167A #7A162D
square
#5F7A16 #167A63 #31167A #7A162D
split-complementary
#5F7A16 #162D7A #63167A
monochromatic
#141A05 #37460D #5F7A16 #87AE1F #ACDA31

Accessibility & contrast

On white

4.90
#5F7A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5F7A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7A16
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7A16#FFFFFF#000000##FFFFFF
##5F7A161.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7E7020
Tritanopia (blue-blind)
#647468
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f7a16;
/* rgb */ color: rgb(95, 122, 22);
/* oklch */ color: oklch(53.9% 0.125 124.3);
Tailwind
colors: {
  custom: {
    50: '#90a05d',
    500: '#5f7a16',
    950: '#000000',
  },
}
SCSS
$custom: #5f7a16;
$custom-light: #90a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7a16",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 76.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53929,
    "c": 0.12515,
    "h": 124.3
  },
  "luminance": 0.1641
}

Semantic roles & 50–950 ramp

primary
#5F7A16
secondary
#5C3DAF
accent
#3CEC6B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7A16

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

Preview Lab → · Contrast checker → · Palette generator →

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