#5F781A#5F781A

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

Color values

HEX#5F781A
RGBrgb(95, 120, 26)
HSLhsl(76, 64%, 29%)
HSVhsv(76, 78%, 47%)
CMYKcmyk(20.8%, 0%, 78.3%, 52.9%)
CIE-LABlab(46.90, -22.93, 45.21)
CIE-LCHlch(46.90, 50.69, 116.90°)
OKLaboklab(53.44% -0.0669 0.1001)
OKLCHoklch(53.44% 0.12 123.8)
XYZxyz(11.6224, 15.9403, 3.4416)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F781A #331A78
analogous
#78621A #5F781A #30781A
triadic
#5F781A #1A5F78 #781A5F
tetradic
#5F781A #1A7862 #331A78 #781A30
square
#5F781A #1A7862 #331A78 #781A30
split-complementary
#5F781A #1A3078 #621A78
monochromatic
#141905 #37460F #5F781A #87AA25 #ABD438

Accessibility & contrast

On white

5.01
#5F781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F781A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F781A#FFFFFF#000000##FFFFFF
##5F781A1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f781a;
/* rgb */ color: rgb(95, 120, 26);
/* oklch */ color: oklch(53.4% 0.120 123.8);
Tailwind
colors: {
  custom: {
    50: '#8f9f5f',
    500: '#5f781a',
    950: '#000000',
  },
}
SCSS
$custom: #5f781a;
$custom-light: #8f9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f781a",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 75.957,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53441,
    "c": 0.12037,
    "h": 123.8
  },
  "luminance": 0.1594
}

Semantic roles & 50–950 ramp

primary
#5F781A
secondary
#5E41AC
accent
#40E76D
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F781A

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

Preview Lab → · Contrast checker → · Palette generator →

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