#AB9D2F#AB9D2F

#AB9D2F is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.8% C 0.127 H 101.9°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AB9D2F
RGBrgb(171, 157, 47)
HSLhsl(53, 57%, 43%)
HSVhsv(53, 73%, 67%)
CMYKcmyk(0%, 8.2%, 72.5%, 32.9%)
CIE-LABlab(64.14, -7.43, 56.17)
CIE-LCHlch(64.14, 56.66, 97.53°)
OKLaboklab(68.84% -0.0262 0.1245)
OKLCHoklch(68.84% 0.127 101.9)
XYZxyz(29.3660, 32.9784, 7.5074)
Luminance0.3298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9D2F #2F3DAB
analogous
#AB5F2F #AB9D2F #7BAB2F
triadic
#AB9D2F #2FAB9D #9D2FAB
tetradic
#AB9D2F #2FAB5F #2F3DAB #AB2F7B
square
#AB9D2F #2FAB5F #2F3DAB #AB2F7B
split-complementary
#AB9D2F #2F7BAB #5F2FAB
monochromatic
#4B4515 #7B7122 #AB9D2F #CDBE4A #DAD07A

Accessibility & contrast

On white

2.76
#AB9D2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AB9D2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9D2F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9D2F#FFFFFF#000000##000000
##AB9D2F1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC981D
Deuteranopia (green-blind)
#B09E36
Tritanopia (blue-blind)
#B89287
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab9d2f;
/* rgb */ color: rgb(171, 157, 47);
/* oklch */ color: oklch(68.8% 0.127 101.9);
Tailwind
colors: {
  custom: {
    50: '#c8b96f',
    500: '#ab9d2f',
    950: '#000000',
  },
}
SCSS
$custom: #ab9d2f;
$custom-light: #c8b96f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9d2f",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 47
  },
  "hsl": {
    "h": 53.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.68836,
    "c": 0.12717,
    "h": 101.9
  },
  "luminance": 0.32977
}

Semantic roles & 50–950 ramp

primary
#AB9D2F
secondary
#737CC3
accent
#59E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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