#AB9D40#AB9D40

#AB9D40 is a light, moderate yellow. Relative luminance 0.331; OKLCH L 69.0% C 0.114 H 100.8°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#AB9D40
RGBrgb(171, 157, 64)
HSLhsl(52, 46%, 46%)
HSVhsv(52, 63%, 67%)
CMYKcmyk(0%, 8.2%, 62.6%, 32.9%)
CIE-LABlab(64.28, -6.43, 49.15)
CIE-LCHlch(64.28, 49.57, 97.45°)
OKLaboklab(68.98% -0.0214 0.1125)
OKLCHoklch(68.98% 0.114 100.8)
XYZxyz(29.7781, 33.1433, 9.6782)
Luminance0.3314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9D40 #404EAB
analogous
#AB6740 #AB9D40 #83AB40
triadic
#AB9D40 #40AB9D #9D40AB
tetradic
#AB9D40 #40AB67 #404EAB #AB4083
square
#AB9D40 #40AB67 #404EAB #AB4083
split-complementary
#AB9D40 #4083AB #6740AB
monochromatic
#524B1F #7E742F #AB9D40 #C5B863 #D5CC90

Accessibility & contrast

On white

2.75
#AB9D40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#AB9D40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9D40
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9D40#FFFFFF#000000##000000
##AB9D401.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9935
Deuteranopia (green-blind)
#AF9E45
Tritanopia (blue-blind)
#B79289
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab9d40;
/* rgb */ color: rgb(171, 157, 64);
/* oklch */ color: oklch(69.0% 0.114 100.8);
Tailwind
colors: {
  custom: {
    50: '#c7b979',
    500: '#ab9d40',
    950: '#000000',
  },
}
SCSS
$custom: #ab9d40;
$custom-light: #c7b979;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9d40",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 64
  },
  "hsl": {
    "h": 52.15,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.68984,
    "c": 0.11447,
    "h": 100.8
  },
  "luminance": 0.33142
}

Semantic roles & 50–950 ramp

primary
#AB9D40
secondary
#868EC1
accent
#64D553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #AB9D40

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

Preview Lab → · Contrast checker → · Palette generator →

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