#5A660F#5A660F

#5A660F is a mid, moderate yellow. Relative luminance 0.117; OKLCH L 48.4% C 0.106 H 117.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5A660F
RGBrgb(90, 102, 15)
HSLhsl(68, 74%, 23%)
HSVhsv(68, 85%, 40%)
CMYKcmyk(11.8%, 0%, 85.3%, 60%)
CIE-LABlab(40.75, -16.27, 43.09)
CIE-LCHlch(40.75, 46.06, 110.69°)
OKLaboklab(48.37% -0.0493 0.0937)
OKLCHoklch(48.37% 0.106 117.7)
XYZxyz(9.0543, 11.7110, 2.2353)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A660F #1B0F66
analogous
#66460F #5A660F #2E660F
triadic
#5A660F #0F5A66 #660F5A
tetradic
#5A660F #0F6646 #1B0F66 #660F2E
square
#5A660F #0F6646 #1B0F66 #660F2E
split-complementary
#5A660F #0F2E66 #460F66
monochromatic
#181B04 #2B3107 #5A660F #899B17 #B8D11F

Accessibility & contrast

On white

6.28
#5A660F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5A660F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A660F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A660F#FFFFFF#000000##FFFFFF
##5A660F1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#6C6018
Tritanopia (blue-blind)
#606056
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a660f;
/* rgb */ color: rgb(90, 102, 15);
/* oklch */ color: oklch(48.4% 0.106 117.7);
Tailwind
colors: {
  custom: {
    50: '#8c9157',
    500: '#5a660f',
    950: '#000000',
  },
}
SCSS
$custom: #5a660f;
$custom-light: #8c9157;
$custom-dark: #000000;
JSON
{
  "hex": "#5a660f",
  "rgb": {
    "r": 90,
    "g": 102,
    "b": 15
  },
  "hsl": {
    "h": 68.276,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.4837,
    "c": 0.10587,
    "h": 117.7
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#5A660F
secondary
#41329F
accent
#37F150
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A660F

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

Preview Lab → · Contrast checker → · Palette generator →

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