#5A7115#5A7115

#5A7115 is a mid, moderate yellow-green. Relative luminance 0.140; OKLCH L 51.2% C 0.117 H 123.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A7115
RGBrgb(90, 113, 21)
HSLhsl(75, 69%, 26%)
HSVhsv(75, 81%, 44%)
CMYKcmyk(20.4%, 0%, 81.4%, 55.7%)
CIE-LABlab(44.29, -21.81, 44.36)
CIE-LCHlch(44.29, 49.44, 116.18°)
OKLaboklab(51.23% -0.064 0.0975)
OKLCHoklch(51.23% 0.117 123.3)
XYZxyz(10.2571, 14.0380, 2.8786)
Luminance0.1404 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7115 #2C1571
analogous
#715A15 #5A7115 #2C7115
triadic
#5A7115 #155A71 #71155A
tetradic
#5A7115 #15715A #2C1571 #71152C
square
#5A7115 #15715A #2C1571 #71152C
split-complementary
#5A7115 #152C71 #5A1571
monochromatic
#151A05 #313D0B #5A7115 #83A51F #ACD729

Accessibility & contrast

On white

5.52
#5A7115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5A7115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7115
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7115#FFFFFF#000000##FFFFFF
##5A71151.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#75691E
Tritanopia (blue-blind)
#5F6B60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7115;
/* rgb */ color: rgb(90, 113, 21);
/* oklch */ color: oklch(51.2% 0.117 123.3);
Tailwind
colors: {
  custom: {
    50: '#8c995b',
    500: '#5a7115',
    950: '#000000',
  },
}
SCSS
$custom: #5a7115;
$custom-light: #8c995b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7115",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 21
  },
  "hsl": {
    "h": 75,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51231,
    "c": 0.11664,
    "h": 123.3
  },
  "luminance": 0.14038
}

Semantic roles & 50–950 ramp

primary
#5A7115
secondary
#563BA7
accent
#3CEB68
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7115

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

Preview Lab → · Contrast checker → · Palette generator →

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