#5A781F#5A781F

#5A781F is a mid, moderate yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.120 H 126.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5A781F
RGBrgb(90, 120, 31)
HSLhsl(80, 59%, 30%)
HSVhsv(80, 74%, 47%)
CMYKcmyk(25%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.59, -24.78, 42.90)
CIE-LCHlch(46.59, 49.54, 120.01°)
OKLaboklab(53.11% -0.0712 0.0962)
OKLCHoklch(53.11% 0.12 126.5)
XYZxyz(11.1803, 15.7053, 3.7385)
Luminance0.1571 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A781F #3D1F78
analogous
#786A1F #5A781F #2E781F
triadic
#5A781F #1F5A78 #781F5A
tetradic
#5A781F #1F786A #3D1F78 #781F2E
square
#5A781F #1F786A #3D1F78 #781F2E
split-complementary
#5A781F #1F2E78 #6A1F78
monochromatic
#121806 #364712 #5A781F #7EA92C #9FCE43

Accessibility & contrast

On white

5.07
#5A781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5A781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A781F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A781F#FFFFFF#000000##FFFFFF
##5A781F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7010
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#5E7267
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a781f;
/* rgb */ color: rgb(90, 120, 31);
/* oklch */ color: oklch(53.1% 0.120 126.5);
Tailwind
colors: {
  custom: {
    50: '#8c9f61',
    500: '#5a781f',
    950: '#000000',
  },
}
SCSS
$custom: #5a781f;
$custom-light: #8c9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a781f",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 80.225,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53112,
    "c": 0.1197,
    "h": 126.5
  },
  "luminance": 0.15706
}

Semantic roles & 50–950 ramp

primary
#5A781F
secondary
#6947AB
accent
#46E27A
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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