#AB942D#AB942D

#AB942D is a light, vivid yellow. Relative luminance 0.300; OKLCH L 66.9% C 0.121 H 96.1°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AB942D
RGBrgb(171, 148, 45)
HSLhsl(49, 58%, 42%)
HSVhsv(49, 74%, 67%)
CMYKcmyk(0%, 13.5%, 73.7%, 32.9%)
CIE-LABlab(61.68, -2.69, 54.54)
CIE-LCHlch(61.68, 54.60, 92.82°)
OKLaboklab(66.88% -0.0129 0.1206)
OKLCHoklch(66.88% 0.121 96.1)
XYZxyz(27.8596, 30.0287, 6.8108)
Luminance0.3003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB942D #2D44AB
analogous
#AB552D #AB942D #83AB2D
triadic
#AB942D #2DAB94 #942DAB
tetradic
#AB942D #2DAB55 #2D44AB #AB2D83
square
#AB942D #2DAB55 #2D44AB #AB2D83
split-complementary
#AB942D #2D83AB #552DAB
monochromatic
#4A4014 #7B6A20 #AB942D #CEB647 #DBC977

Accessibility & contrast

On white

3.00
#AB942D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#AB942D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB942D
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB942D#FFFFFF#000000##000000
##AB942D1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3911C
Deuteranopia (green-blind)
#A99833
Tritanopia (blue-blind)
#B98880
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab942d;
/* rgb */ color: rgb(171, 148, 45);
/* oklch */ color: oklch(66.9% 0.121 96.1);
Tailwind
colors: {
  custom: {
    50: '#c8b36d',
    500: '#ab942d',
    950: '#000000',
  },
}
SCSS
$custom: #ab942d;
$custom-light: #c8b36d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab942d",
  "rgb": {
    "r": 171,
    "g": 148,
    "b": 45
  },
  "hsl": {
    "h": 49.048,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.66878,
    "c": 0.12131,
    "h": 96.1
  },
  "luminance": 0.30027
}

Semantic roles & 50–950 ramp

primary
#AB942D
secondary
#7180C3
accent
#63E246
background
#FCFAF6
surface
#F9F5EC
border
#D2CFC7
text
#141007
muted
#827F7A

Preview Lab

Preview with #AB942D

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

Preview Lab → · Contrast checker → · Palette generator →

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