#5F7815#5F7815

#5F7815 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.123 H 123.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F7815
RGBrgb(95, 120, 21)
HSLhsl(75, 70%, 28%)
HSVhsv(75, 83%, 47%)
CMYKcmyk(20.8%, 0%, 82.5%, 52.9%)
CIE-LABlab(46.87, -23.18, 46.85)
CIE-LCHlch(46.87, 52.27, 116.32°)
OKLaboklab(53.41% -0.068 0.1026)
OKLCHoklch(53.41% 0.123 123.5)
XYZxyz(11.5713, 15.9199, 3.1726)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7815 #2E1578
analogous
#786015 #5F7815 #2D7815
triadic
#5F7815 #155F78 #78155F
tetradic
#5F7815 #157860 #2E1578 #78152D
square
#5F7815 #157860 #2E1578 #78152D
split-complementary
#5F7815 #152D78 #601578
monochromatic
#151A05 #36440C #5F7815 #88AC1E #AFDA2D

Accessibility & contrast

On white

5.02
#5F7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5F7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7815
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7815#FFFFFF#000000##FFFFFF
##5F78151.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#7C6F1F
Tritanopia (blue-blind)
#647266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f7815;
/* rgb */ color: rgb(95, 120, 21);
/* oklch */ color: oklch(53.4% 0.123 123.5);
Tailwind
colors: {
  custom: {
    50: '#909f5c',
    500: '#5f7815',
    950: '#000000',
  },
}
SCSS
$custom: #5f7815;
$custom-light: #909f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7815",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 75.152,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.53411,
    "c": 0.12312,
    "h": 123.5
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#5F7815
secondary
#583BAE
accent
#3BED68
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7815

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

Preview Lab → · Contrast checker → · Palette generator →

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