#AB9A2F#AB9A2F

#AB9A2F is a light, vivid yellow. Relative luminance 0.320; OKLCH L 68.2% C 0.125 H 100.0°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#AB9A2F
RGBrgb(171, 154, 47)
HSLhsl(52, 57%, 43%)
HSVhsv(52, 73%, 67%)
CMYKcmyk(0%, 9.9%, 72.5%, 32.9%)
CIE-LABlab(63.32, -5.83, 55.37)
CIE-LCHlch(63.32, 55.67, 96.01°)
OKLaboklab(68.18% -0.0216 0.1228)
OKLCHoklch(68.18% 0.125 100)
XYZxyz(28.8646, 31.9757, 7.3403)
Luminance0.3197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9A2F #2F40AB
analogous
#AB5C2F #AB9A2F #7EAB2F
triadic
#AB9A2F #2FAB9A #9A2FAB
tetradic
#AB9A2F #2FAB5C #2F40AB #AB2F7E
square
#AB9A2F #2FAB5C #2F40AB #AB2F7E
split-complementary
#AB9A2F #2F7EAB #5C2FAB
monochromatic
#4B4415 #7B6F22 #AB9A2F #CDBB4A #DACD7A

Accessibility & contrast

On white

2.84
#AB9A2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#AB9A2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9A2F
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9A2F#FFFFFF#000000##000000
##AB9A2F1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9961E
Deuteranopia (green-blind)
#AE9C36
Tritanopia (blue-blind)
#B88F85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab9a2f;
/* rgb */ color: rgb(171, 154, 47);
/* oklch */ color: oklch(68.2% 0.125 100.0);
Tailwind
colors: {
  custom: {
    50: '#c8b76f',
    500: '#ab9a2f',
    950: '#000000',
  },
}
SCSS
$custom: #ab9a2f;
$custom-light: #c8b76f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9a2f",
  "rgb": {
    "r": 171,
    "g": 154,
    "b": 47
  },
  "hsl": {
    "h": 51.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.68184,
    "c": 0.12465,
    "h": 100
  },
  "luminance": 0.31974
}

Semantic roles & 50–950 ramp

primary
#AB9A2F
secondary
#737EC3
accent
#5DE048
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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