#5A6814#5A6814

#5A6814 is a mid, moderate yellow-green. Relative luminance 0.121; OKLCH L 48.9% C 0.106 H 119.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A6814
RGBrgb(90, 104, 20)
HSLhsl(70, 68%, 24%)
HSVhsv(70, 81%, 41%)
CMYKcmyk(13.5%, 0%, 80.8%, 59.2%)
CIE-LABlab(41.41, -17.13, 42.05)
CIE-LCHlch(41.41, 45.41, 112.16°)
OKLaboklab(48.91% -0.0512 0.0925)
OKLCHoklch(48.91% 0.106 119)
XYZxyz(9.2932, 12.1249, 2.5124)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6814 #221468
analogous
#684C14 #5A6814 #306814
triadic
#5A6814 #145A68 #68145A
tetradic
#5A6814 #14684C #221468 #681430
square
#5A6814 #14684C #221468 #681430
split-complementary
#5A6814 #143068 #4C1468
monochromatic
#161A05 #2E350A #5A6814 #869B1E #B3CF28

Accessibility & contrast

On white

6.13
#5A6814 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A6814 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6814
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6814#FFFFFF#000000##FFFFFF
##5A68141.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6201
Deuteranopia (green-blind)
#6E621C
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6814;
/* rgb */ color: rgb(90, 104, 20);
/* oklch */ color: oklch(48.9% 0.106 119.0);
Tailwind
colors: {
  custom: {
    50: '#8b9359',
    500: '#5a6814',
    950: '#000000',
  },
}
SCSS
$custom: #5a6814;
$custom-light: #8b9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6814",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 20
  },
  "hsl": {
    "h": 70,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4891,
    "c": 0.10569,
    "h": 119
  },
  "luminance": 0.12125
}

Semantic roles & 50–950 ramp

primary
#5A6814
secondary
#4A399F
accent
#3DEB5A
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6814

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

Preview Lab → · Contrast checker → · Palette generator →

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