#5F7213#5F7213

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

Color values

HEX#5F7213
RGBrgb(95, 114, 19)
HSLhsl(72, 71%, 26%)
HSVhsv(72, 83%, 45%)
CMYKcmyk(16.7%, 0%, 83.3%, 55.3%)
CIE-LABlab(44.96, -20.19, 45.75)
CIE-LCHlch(44.96, 50.01, 113.81°)
OKLaboklab(51.87% -0.06 0.0999)
OKLCHoklch(51.87% 0.117 121)
XYZxyz(10.8544, 14.5146, 2.8457)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7213 #261372
analogous
#725513 #5F7213 #2F7213
triadic
#5F7213 #135F72 #72135F
tetradic
#5F7213 #137255 #261372 #72132F
square
#5F7213 #137255 #261372 #72132F
split-complementary
#5F7213 #132F72 #551372
monochromatic
#161A04 #333E0A #5F7213 #8BA61C #B6DB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7213#FFFFFF#000000##FFFFFF
##5F72131.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)
#776A1D
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7213;
/* rgb */ color: rgb(95, 114, 19);
/* oklch */ color: oklch(51.9% 0.117 121.0);
Tailwind
colors: {
  custom: {
    50: '#909a5b',
    500: '#5f7213',
    950: '#000000',
  },
}
SCSS
$custom: #5f7213;
$custom-light: #909a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7213",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 72,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51867,
    "c": 0.11656,
    "h": 121
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#5F7213
secondary
#4F38A9
accent
#3AEE5E
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7213

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

Preview Lab → · Contrast checker → · Palette generator →

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