#5F7214#5F7214

#5F7214 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.9% C 0.116 H 121.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F7214
RGBrgb(95, 114, 20)
HSLhsl(72, 70%, 26%)
HSVhsv(72, 82%, 45%)
CMYKcmyk(16.7%, 0%, 82.5%, 55.3%)
CIE-LABlab(44.97, -20.14, 45.44)
CIE-LCHlch(44.97, 49.71, 113.90°)
OKLaboklab(51.87% -0.0598 0.0995)
OKLCHoklch(51.87% 0.116 121)
XYZxyz(10.8631, 14.5180, 2.8917)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7214 #271472
analogous
#725614 #5F7214 #307214
triadic
#5F7214 #145F72 #72145F
tetradic
#5F7214 #147256 #271472 #721430
square
#5F7214 #147256 #271472 #721430
split-complementary
#5F7214 #143072 #561472
monochromatic
#161A05 #343E0B #5F7214 #8AA61D #B5D927

Accessibility & contrast

On white

5.38
#5F7214 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5F7214 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7214
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7214#FFFFFF#000000##FFFFFF
##5F72141.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1E
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7214;
/* rgb */ color: rgb(95, 114, 20);
/* oklch */ color: oklch(51.9% 0.116 121.0);
Tailwind
colors: {
  custom: {
    50: '#8f9a5b',
    500: '#5f7214',
    950: '#000000',
  },
}
SCSS
$custom: #5f7214;
$custom-light: #8f9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7214",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 20
  },
  "hsl": {
    "h": 72.128,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51872,
    "c": 0.11606,
    "h": 121
  },
  "luminance": 0.14518
}

Semantic roles & 50–950 ramp

primary
#5F7214
secondary
#5039A8
accent
#3BED5F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7214

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

Preview Lab → · Contrast checker → · Palette generator →

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