#5F7210#5F7210

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

Color values

HEX#5F7210
RGBrgb(95, 114, 16)
HSLhsl(72, 75%, 25%)
HSVhsv(72, 86%, 45%)
CMYKcmyk(16.7%, 0%, 86%, 55.3%)
CIE-LABlab(44.95, -20.31, 46.62)
CIE-LCHlch(44.95, 50.85, 113.53°)
OKLaboklab(51.85% -0.0605 0.1013)
OKLCHoklch(51.85% 0.118 120.9)
XYZxyz(10.8304, 14.5050, 2.7193)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7210 #231072
analogous
#725410 #5F7210 #2E7210
triadic
#5F7210 #105F72 #72105F
tetradic
#5F7210 #107254 #231072 #72102E
square
#5F7210 #107254 #231072 #72102E
split-complementary
#5F7210 #102E72 #541072
monochromatic
#161B04 #323C08 #5F7210 #8CA818 #B8DD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7210#FFFFFF#000000##FFFFFF
##5F72101.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)
#776A1B
Tritanopia (blue-blind)
#656B61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7210;
/* rgb */ color: rgb(95, 114, 16);
/* oklch */ color: oklch(51.9% 0.118 120.9);
Tailwind
colors: {
  custom: {
    50: '#909a59',
    500: '#5f7210',
    950: '#000000',
  },
}
SCSS
$custom: #5f7210;
$custom-light: #909a59;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7210",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 16
  },
  "hsl": {
    "h": 71.633,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51852,
    "c": 0.11798,
    "h": 120.9
  },
  "luminance": 0.14505
}

Semantic roles & 50–950 ramp

primary
#5F7210
secondary
#4B34A9
accent
#36F25A
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7210

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

Preview Lab → · Contrast checker → · Palette generator →

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