#5F7215#5F7215

#5F7215 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#5F7215
RGBrgb(95, 114, 21)
HSLhsl(72, 69%, 26%)
HSVhsv(72, 82%, 45%)
CMYKcmyk(16.7%, 0%, 81.6%, 55.3%)
CIE-LABlab(44.97, -20.10, 45.13)
CIE-LCHlch(44.97, 49.40, 114.00°)
OKLaboklab(51.88% -0.0596 0.099)
OKLCHoklch(51.88% 0.116 121)
XYZxyz(10.8722, 14.5217, 2.9395)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7215 #281572
analogous
#725715 #5F7215 #317215
triadic
#5F7215 #155F72 #72155F
tetradic
#5F7215 #157257 #281572 #721531
square
#5F7215 #157257 #281572 #721531
split-complementary
#5F7215 #153172 #571572
monochromatic
#161A05 #343E0B #5F7215 #8AA61F #B4D82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7215#FFFFFF#000000##FFFFFF
##5F72151.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: #5f7215;
/* rgb */ color: rgb(95, 114, 21);
/* oklch */ color: oklch(51.9% 0.116 121.0);
Tailwind
colors: {
  custom: {
    50: '#8f9a5b',
    500: '#5f7215',
    950: '#000000',
  },
}
SCSS
$custom: #5f7215;
$custom-light: #8f9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7215",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 72.258,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51878,
    "c": 0.11553,
    "h": 121
  },
  "luminance": 0.14522
}

Semantic roles & 50–950 ramp

primary
#5F7215
secondary
#513BA8
accent
#3CEC60
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7215

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

Preview Lab → · Contrast checker → · Palette generator →

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