#AB942F#AB942F

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

Color values

HEX#AB942F
RGBrgb(171, 148, 47)
HSLhsl(49, 57%, 43%)
HSVhsv(49, 73%, 67%)
CMYKcmyk(0%, 13.5%, 72.5%, 32.9%)
CIE-LABlab(61.69, -2.59, 53.76)
CIE-LCHlch(61.69, 53.82, 92.76°)
OKLaboklab(66.89% -0.0124 0.1194)
OKLCHoklch(66.89% 0.12 95.9)
XYZxyz(27.8990, 30.0445, 7.0184)
Luminance0.3004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB942F #2F46AB
analogous
#AB562F #AB942F #84AB2F
triadic
#AB942F #2FAB94 #942FAB
tetradic
#AB942F #2FAB56 #2F46AB #AB2F84
square
#AB942F #2FAB56 #2F46AB #AB2F84
split-complementary
#AB942F #2F84AB #562FAB
monochromatic
#4B4115 #7B6A22 #AB942F #CDB54A #DAC97A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB942F#FFFFFF#000000##000000
##AB942F1.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)
#A39120
Deuteranopia (green-blind)
#A99835
Tritanopia (blue-blind)
#B98880
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab942f;
/* rgb */ color: rgb(171, 148, 47);
/* oklch */ color: oklch(66.9% 0.120 95.9);
Tailwind
colors: {
  custom: {
    50: '#c8b36e',
    500: '#ab942f',
    950: '#000000',
  },
}
SCSS
$custom: #ab942f;
$custom-light: #c8b36e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab942f",
  "rgb": {
    "r": 171,
    "g": 148,
    "b": 47
  },
  "hsl": {
    "h": 48.871,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.66893,
    "c": 0.12001,
    "h": 95.9
  },
  "luminance": 0.30043
}

Semantic roles & 50–950 ramp

primary
#AB942F
secondary
#7382C3
accent
#64E048
background
#FCFAF6
surface
#F9F5EC
border
#D2CFC7
text
#141008
muted
#827F7B

Preview Lab

Preview with #AB942F

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

Preview Lab → · Contrast checker → · Palette generator →

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