#5A6815#5A6815

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

Color values

HEX#5A6815
RGBrgb(90, 104, 21)
HSLhsl(70, 66%, 25%)
HSVhsv(70, 80%, 41%)
CMYKcmyk(13.5%, 0%, 79.8%, 59.2%)
CIE-LABlab(41.42, -17.08, 41.70)
CIE-LCHlch(41.42, 45.06, 112.27°)
OKLaboklab(48.92% -0.051 0.0919)
OKLCHoklch(48.92% 0.105 119)
XYZxyz(9.3023, 12.1285, 2.5603)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6815 #231568
analogous
#684C15 #5A6815 #316815
triadic
#5A6815 #155A68 #68155A
tetradic
#5A6815 #15684C #231568 #681531
square
#5A6815 #15684C #231568 #681531
split-complementary
#5A6815 #153168 #4C1568
monochromatic
#161905 #2E350B #5A6815 #869B1F #B2CE2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6815#FFFFFF#000000##FFFFFF
##5A68151.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)
#6F6203
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6815;
/* rgb */ color: rgb(90, 104, 21);
/* oklch */ color: oklch(48.9% 0.105 119.0);
Tailwind
colors: {
  custom: {
    50: '#8b935a',
    500: '#5a6815',
    950: '#000000',
  },
}
SCSS
$custom: #5a6815;
$custom-light: #8b935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6815",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 70.12,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.48917,
    "c": 0.1051,
    "h": 119
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#5A6815
secondary
#4B3A9F
accent
#3EE95B
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6815

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

Preview Lab → · Contrast checker → · Palette generator →

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