#AB9942#AB9942

#AB9942 is a light, moderate yellow. Relative luminance 0.318; OKLCH L 68.1% C 0.109 H 97.7°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#AB9942
RGBrgb(171, 153, 66)
HSLhsl(50, 44%, 46%)
HSVhsv(50, 61%, 67%)
CMYKcmyk(0%, 10.5%, 61.4%, 32.9%)
CIE-LABlab(63.21, -4.14, 47.05)
CIE-LCHlch(63.21, 47.23, 95.03°)
OKLaboklab(68.14% -0.0146 0.1083)
OKLCHoklch(68.14% 0.109 97.7)
XYZxyz(29.1704, 31.8350, 9.7615)
Luminance0.3183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9942 #4254AB
analogous
#AB6542 #AB9942 #89AB42
triadic
#AB9942 #42AB99 #9942AB
tetradic
#AB9942 #42AB65 #4254AB #AB4289
square
#AB9942 #42AB65 #4254AB #AB4289
split-complementary
#AB9942 #4289AB #6542AB
monochromatic
#534A20 #7F7131 #AB9942 #C4B466 #D5CA92

Accessibility & contrast

On white

2.85
#AB9942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#AB9942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9942
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9942#FFFFFF#000000##000000
##AB99421.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79539
Deuteranopia (green-blind)
#AC9C46
Tritanopia (blue-blind)
#B88F86
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab9942;
/* rgb */ color: rgb(171, 153, 66);
/* oklch */ color: oklch(68.1% 0.109 97.7);
Tailwind
colors: {
  custom: {
    50: '#c7b67a',
    500: '#ab9942',
    950: '#000000',
  },
}
SCSS
$custom: #ab9942;
$custom-light: #c7b67a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9942",
  "rgb": {
    "r": 171,
    "g": 153,
    "b": 66
  },
  "hsl": {
    "h": 49.714,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.68142,
    "c": 0.10924,
    "h": 97.7
  },
  "luminance": 0.31834
}

Semantic roles & 50–950 ramp

primary
#AB9942
secondary
#8892C0
accent
#6AD454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #AB9942

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

Preview Lab → · Contrast checker → · Palette generator →

#AB9942 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva