#5F7819#5F7819

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

Color values

HEX#5F7819
RGBrgb(95, 120, 25)
HSLhsl(76, 66%, 28%)
HSVhsv(76, 79%, 47%)
CMYKcmyk(20.8%, 0%, 79.2%, 52.9%)
CIE-LABlab(46.89, -22.98, 45.55)
CIE-LCHlch(46.89, 51.02, 116.77°)
OKLaboklab(53.44% -0.0672 0.1006)
OKLCHoklch(53.44% 0.121 123.7)
XYZxyz(11.6114, 15.9359, 3.3837)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7819 #321978
analogous
#786119 #5F7819 #307819
triadic
#5F7819 #195F78 #78195F
tetradic
#5F7819 #197861 #321978 #781930
square
#5F7819 #197861 #321978 #781930
split-complementary
#5F7819 #193078 #611978
monochromatic
#141905 #37450E #5F7819 #87AB24 #ABD536

Accessibility & contrast

On white

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

On black

4.19
#5F7819 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F7819#FFFFFF#000000##FFFFFF
##5F78191.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f7819;
/* rgb */ color: rgb(95, 120, 25);
/* oklch */ color: oklch(53.4% 0.121 123.7);
Tailwind
colors: {
  custom: {
    50: '#909f5e',
    500: '#5f7819',
    950: '#000000',
  },
}
SCSS
$custom: #5f7819;
$custom-light: #909f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7819",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 25
  },
  "hsl": {
    "h": 75.789,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53435,
    "c": 0.12096,
    "h": 123.7
  },
  "luminance": 0.15936
}

Semantic roles & 50–950 ramp

primary
#5F7819
secondary
#5D40AD
accent
#3FE86C
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7819

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

Preview Lab → · Contrast checker → · Palette generator →

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