#5A7215#5A7215

#5A7215 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.5% C 0.118 H 123.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A7215
RGBrgb(90, 114, 21)
HSLhsl(75, 69%, 26%)
HSVhsv(75, 82%, 45%)
CMYKcmyk(21.1%, 0%, 81.6%, 55.3%)
CIE-LABlab(44.61, -22.32, 44.66)
CIE-LCHlch(44.61, 49.93, 116.56°)
OKLaboklab(51.49% -0.0654 0.0982)
OKLCHoklch(51.49% 0.118 123.7)
XYZxyz(10.3692, 14.2624, 2.9159)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7215 #2D1572
analogous
#725C15 #5A7215 #2C7215
triadic
#5A7215 #155A72 #72155A
tetradic
#5A7215 #15725C #2D1572 #72152C
square
#5A7215 #15725C #2D1572 #72152C
split-complementary
#5A7215 #152C72 #5C1572
monochromatic
#141A05 #313E0B #5A7215 #83A61F #ABD82A

Accessibility & contrast

On white

5.45
#5A7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7215
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7215#FFFFFF#000000##FFFFFF
##5A72151.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#76691E
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7215;
/* rgb */ color: rgb(90, 114, 21);
/* oklch */ color: oklch(51.5% 0.118 123.7);
Tailwind
colors: {
  custom: {
    50: '#8c9a5b',
    500: '#5a7215',
    950: '#000000',
  },
}
SCSS
$custom: #5a7215;
$custom-light: #8c9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7215",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 75.484,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51489,
    "c": 0.11793,
    "h": 123.7
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#5A7215
secondary
#573BA8
accent
#3CEC69
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7215

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

Preview Lab → · Contrast checker → · Palette generator →

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