#5A7513#5A7513

#5A7513 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.3% C 0.123 H 124.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A7513
RGBrgb(90, 117, 19)
HSLhsl(77, 72%, 27%)
HSVhsv(77, 84%, 46%)
CMYKcmyk(23.1%, 0%, 83.8%, 54.1%)
CIE-LABlab(45.56, -23.94, 46.15)
CIE-LCHlch(45.56, 51.99, 117.41°)
OKLaboklab(52.26% -0.0699 0.101)
OKLCHoklch(52.26% 0.123 124.7)
XYZxyz(10.6954, 14.9431, 2.9368)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7513 #2E1375
analogous
#755F13 #5A7513 #297513
triadic
#5A7513 #135A75 #75135A
tetradic
#5A7513 #13755F #2E1375 #751329
square
#5A7513 #13755F #2E1375 #751329
split-complementary
#5A7513 #132975 #5F1375
monochromatic
#141A04 #32400A #5A7513 #83AA1C #AADC27

Accessibility & contrast

On white

5.27
#5A7513 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7513 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7513
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7513#FFFFFF#000000##FFFFFF
##5A75131.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#786C1E
Tritanopia (blue-blind)
#5F6F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7513;
/* rgb */ color: rgb(90, 117, 19);
/* oklch */ color: oklch(52.3% 0.123 124.7);
Tailwind
colors: {
  custom: {
    50: '#8c9c5b',
    500: '#5a7513',
    950: '#000000',
  },
}
SCSS
$custom: #5a7513;
$custom-light: #8c9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7513",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 19
  },
  "hsl": {
    "h": 76.531,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52255,
    "c": 0.12281,
    "h": 124.7
  },
  "luminance": 0.14943
}

Semantic roles & 50–950 ramp

primary
#5A7513
secondary
#5838AB
accent
#39EF6B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7513

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

Preview Lab → · Contrast checker → · Palette generator →

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