#5A6412#5A6412

#5A6412 is a mid, moderate yellow. Relative luminance 0.113; OKLCH L 47.9% C 0.102 H 116.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5A6412
RGBrgb(90, 100, 18)
HSLhsl(67, 69%, 23%)
HSVhsv(67, 82%, 39%)
CMYKcmyk(10%, 0%, 82%, 60.8%)
CIE-LABlab(40.13, -15.05, 41.56)
CIE-LCHlch(40.13, 44.21, 109.91°)
OKLaboklab(47.88% -0.0457 0.091)
OKLCHoklch(47.88% 0.102 116.6)
XYZxyz(8.8830, 11.3318, 2.2915)
Luminance0.1133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6412 #1C1264
analogous
#644512 #5A6412 #316412
triadic
#5A6412 #125A64 #64125A
tetradic
#5A6412 #126445 #1C1264 #641231
square
#5A6412 #126445 #1C1264 #641231
split-complementary
#5A6412 #123164 #451264
monochromatic
#171A05 #2B3009 #5A6412 #89981B #B7CC25

Accessibility & contrast

On white

6.43
#5A6412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5A6412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6412
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6412#FFFFFF#000000##FFFFFF
##5A64121.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#6B5F1A
Tritanopia (blue-blind)
#605E55
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a6412;
/* rgb */ color: rgb(90, 100, 18);
/* oklch */ color: oklch(47.9% 0.102 116.6);
Tailwind
colors: {
  custom: {
    50: '#8b9058',
    500: '#5a6412',
    950: '#000000',
  },
}
SCSS
$custom: #5a6412;
$custom-light: #8b9058;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6412",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 18
  },
  "hsl": {
    "h": 67.317,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.10186,
    "h": 116.6
  },
  "luminance": 0.11332
}

Semantic roles & 50–950 ramp

primary
#5A6412
secondary
#42369C
accent
#3BEC51
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6412

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

Preview Lab → · Contrast checker → · Palette generator →

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