#5A7412#5A7412

#5A7412 is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 52.0% C 0.122 H 124.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5A7412
RGBrgb(90, 116, 18)
HSLhsl(76, 73%, 26%)
HSVhsv(76, 84%, 45%)
CMYKcmyk(22.4%, 0%, 84.5%, 54.5%)
CIE-LABlab(45.23, -23.48, 46.16)
CIE-LCHlch(45.23, 51.79, 116.96°)
OKLaboklab(51.99% -0.0687 0.1008)
OKLCHoklch(51.99% 0.122 124.3)
XYZxyz(10.5711, 14.7080, 2.8542)
Luminance0.1471 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7412 #2C1274
analogous
#745D12 #5A7412 #297412
triadic
#5A7412 #125A74 #74125A
tetradic
#5A7412 #12745D #2C1274 #741229
square
#5A7412 #12745D #2C1274 #741229
split-complementary
#5A7412 #122974 #5D1274
monochromatic
#151A04 #313F0A #5A7412 #83A91A #ACDD23

Accessibility & contrast

On white

5.33
#5A7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7412
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7412#FFFFFF#000000##FFFFFF
##5A74121.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#5F6E62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a7412;
/* rgb */ color: rgb(90, 116, 18);
/* oklch */ color: oklch(52.0% 0.122 124.3);
Tailwind
colors: {
  custom: {
    50: '#8c9c5a',
    500: '#5a7412',
    950: '#000000',
  },
}
SCSS
$custom: #5a7412;
$custom-light: #8c9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7412",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 75.918,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51991,
    "c": 0.12201,
    "h": 124.3
  },
  "luminance": 0.14708
}

Semantic roles & 50–950 ramp

primary
#5A7412
secondary
#5637AB
accent
#38F069
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7412

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

Preview Lab → · Contrast checker → · Palette generator →

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