#5A6915#5A6915

#5A6915 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 49.2% C 0.106 H 119.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5A6915
RGBrgb(90, 105, 21)
HSLhsl(71, 67%, 25%)
HSVhsv(71, 80%, 41%)
CMYKcmyk(14.3%, 0%, 80%, 58.8%)
CIE-LABlab(41.74, -17.61, 42.00)
CIE-LCHlch(41.74, 45.54, 112.75°)
OKLaboklab(49.17% -0.0525 0.0925)
OKLCHoklch(49.17% 0.106 119.6)
XYZxyz(9.4036, 12.3310, 2.5941)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6915 #241569
analogous
#694E15 #5A6915 #306915
triadic
#5A6915 #155A69 #69155A
tetradic
#5A6915 #15694E #241569 #691530
square
#5A6915 #15694E #241569 #691530
split-complementary
#5A6915 #153069 #4E1569
monochromatic
#161A05 #2E360B #5A6915 #869C1F #B1CF29

Accessibility & contrast

On white

6.06
#5A6915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5A6915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6915
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6915#FFFFFF#000000##FFFFFF
##5A69151.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706302
Deuteranopia (green-blind)
#6E631D
Tritanopia (blue-blind)
#606359
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6915;
/* rgb */ color: rgb(90, 105, 21);
/* oklch */ color: oklch(49.2% 0.106 119.6);
Tailwind
colors: {
  custom: {
    50: '#8b935a',
    500: '#5a6915',
    950: '#000000',
  },
}
SCSS
$custom: #5a6915;
$custom-light: #8b935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6915",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 70.714,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.49173,
    "c": 0.10637,
    "h": 119.6
  },
  "luminance": 0.12331
}

Semantic roles & 50–950 ramp

primary
#5A6915
secondary
#4C3AA0
accent
#3EEA5D
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6915

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

Preview Lab → · Contrast checker → · Palette generator →

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