#AB942C#AB942C

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

Color values

HEX#AB942C
RGBrgb(171, 148, 44)
HSLhsl(49, 59%, 42%)
HSVhsv(49, 74%, 67%)
CMYKcmyk(0%, 13.5%, 74.3%, 32.9%)
CIE-LABlab(61.67, -2.74, 54.92)
CIE-LCHlch(61.67, 54.99, 92.85°)
OKLaboklab(66.87% -0.0132 0.1212)
OKLCHoklch(66.87% 0.122 96.2)
XYZxyz(27.8405, 30.0211, 6.7106)
Luminance0.3002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB942C #2C43AB
analogous
#AB552C #AB942C #83AB2C
triadic
#AB942C #2CAB94 #942CAB
tetradic
#AB942C #2CAB55 #2C43AB #AB2C83
square
#AB942C #2CAB55 #2C43AB #AB2C83
split-complementary
#AB942C #2C83AB #552CAB
monochromatic
#4A4013 #7A6A1F #AB942C #CFB645 #DCC976

Accessibility & contrast

On white

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

On black

7.00
#AB942C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB942C
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB942C#FFFFFF#000000##000000
##AB942C1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab942c;
/* rgb */ color: rgb(171, 148, 44);
/* oklch */ color: oklch(66.9% 0.122 96.2);
Tailwind
colors: {
  custom: {
    50: '#c8b36d',
    500: '#ab942c',
    950: '#000000',
  },
}
SCSS
$custom: #ab942c;
$custom-light: #c8b36d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab942c",
  "rgb": {
    "r": 171,
    "g": 148,
    "b": 44
  },
  "hsl": {
    "h": 49.134,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.6687,
    "c": 0.12194,
    "h": 96.2
  },
  "luminance": 0.3002
}

Semantic roles & 50–950 ramp

primary
#AB942C
secondary
#6F7FC3
accent
#62E246
background
#FCFAF6
surface
#F9F5EC
border
#D2CFC7
text
#141007
muted
#827F7A

Preview Lab

Preview with #AB942C

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

Preview Lab → · Contrast checker → · Palette generator →

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