#5D781B#5D781B

#5D781B is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.3% C 0.121 H 124.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5D781B
RGBrgb(93, 120, 27)
HSLhsl(77, 63%, 29%)
HSVhsv(77, 78%, 47%)
CMYKcmyk(22.5%, 0%, 77.5%, 52.9%)
CIE-LABlab(46.76, -23.74, 44.67)
CIE-LCHlch(46.76, 50.59, 117.99°)
OKLaboklab(53.3% -0.0689 0.0992)
OKLCHoklch(53.3% 0.121 124.8)
XYZxyz(11.4286, 15.8391, 3.4918)
Luminance0.1584 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D781B #361B78
analogous
#78651B #5D781B #2F781B
triadic
#5D781B #1B5D78 #781B5D
tetradic
#5D781B #1B7865 #361B78 #781B2F
square
#5D781B #1B7865 #361B78 #781B2F
split-complementary
#5D781B #1B2F78 #651B78
monochromatic
#131906 #364610 #5D781B #84AA26 #A7D33B

Accessibility & contrast

On white

5.04
#5D781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5D781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D781B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D781B#FFFFFF#000000##FFFFFF
##5D781B1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7007
Deuteranopia (green-blind)
#7B6F24
Tritanopia (blue-blind)
#627266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d781b;
/* rgb */ color: rgb(93, 120, 27);
/* oklch */ color: oklch(53.3% 0.121 124.8);
Tailwind
colors: {
  custom: {
    50: '#8e9f5f',
    500: '#5d781b',
    950: '#000000',
  },
}
SCSS
$custom: #5d781b;
$custom-light: #8e9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d781b",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 77.419,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.12076,
    "h": 124.8
  },
  "luminance": 0.15839
}

Semantic roles & 50–950 ramp

primary
#5D781B
secondary
#6143AC
accent
#41E671
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5D781B

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

Preview Lab → · Contrast checker → · Palette generator →

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