#5A6A0F#5A6A0F

#5A6A0F is a mid, moderate yellow-green. Relative luminance 0.125; OKLCH L 49.4% C 0.111 H 119.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5A6A0F
RGBrgb(90, 106, 15)
HSLhsl(71, 75%, 24%)
HSVhsv(71, 86%, 42%)
CMYKcmyk(15.1%, 0%, 85.8%, 58.4%)
CIE-LABlab(42.03, -18.42, 44.21)
CIE-LCHlch(42.03, 47.89, 112.62°)
OKLaboklab(49.4% -0.0552 0.0961)
OKLCHoklch(49.4% 0.111 119.9)
XYZxyz(9.4569, 12.5163, 2.3695)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6A0F #1F0F6A
analogous
#6A4C0F #5A6A0F #2C6A0F
triadic
#5A6A0F #0F5A6A #6A0F5A
tetradic
#5A6A0F #0F6A4C #1F0F6A #6A0F2C
square
#5A6A0F #0F6A4C #1F0F6A #6A0F2C
split-complementary
#5A6A0F #0F2C6A #4C0F6A
monochromatic
#171B04 #2C3407 #5A6A0F #88A017 #B5D51E

Accessibility & contrast

On white

5.99
#5A6A0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5A6A0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6A0F
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6A0F#FFFFFF#000000##FFFFFF
##5A6A0F1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#706319
Tritanopia (blue-blind)
#60645A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a6a0f;
/* rgb */ color: rgb(90, 106, 15);
/* oklch */ color: oklch(49.4% 0.111 119.9);
Tailwind
colors: {
  custom: {
    50: '#8c9458',
    500: '#5a6a0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a6a0f;
$custom-light: #8c9458;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6a0f",
  "rgb": {
    "r": 90,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 70.549,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.49395,
    "c": 0.1108,
    "h": 119.9
  },
  "luminance": 0.12516
}

Semantic roles & 50–950 ramp

primary
#5A6A0F
secondary
#4632A2
accent
#36F257
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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