#AB9C40#AB9C40

#AB9C40 is a light, moderate yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.114 H 100.1°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AB9C40
RGBrgb(171, 156, 64)
HSLhsl(52, 46%, 46%)
HSVhsv(52, 63%, 67%)
CMYKcmyk(0%, 8.8%, 62.6%, 32.9%)
CIE-LABlab(64.00, -5.89, 48.85)
CIE-LCHlch(64.00, 49.21, 96.88°)
OKLaboklab(68.77% -0.0199 0.1118)
OKLCHoklch(68.77% 0.114 100.1)
XYZxyz(29.6096, 32.8063, 9.6221)
Luminance0.3281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9C40 #404FAB
analogous
#AB6640 #AB9C40 #84AB40
triadic
#AB9C40 #40AB9C #9C40AB
tetradic
#AB9C40 #40AB66 #404FAB #AB4084
square
#AB9C40 #40AB66 #404FAB #AB4084
split-complementary
#AB9C40 #4084AB #6640AB
monochromatic
#524B1F #7E732F #AB9C40 #C5B763 #D5CC90

Accessibility & contrast

On white

2.78
#AB9C40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AB9C40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9C40
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9C40#FFFFFF#000000##000000
##AB9C401.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9836
Deuteranopia (green-blind)
#AE9E45
Tritanopia (blue-blind)
#B89188
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab9c40;
/* rgb */ color: rgb(171, 156, 64);
/* oklch */ color: oklch(68.8% 0.114 100.1);
Tailwind
colors: {
  custom: {
    50: '#c7b879',
    500: '#ab9c40',
    950: '#000000',
  },
}
SCSS
$custom: #ab9c40;
$custom-light: #c7b879;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9c40",
  "rgb": {
    "r": 171,
    "g": 156,
    "b": 64
  },
  "hsl": {
    "h": 51.589,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.68768,
    "c": 0.11357,
    "h": 100.1
  },
  "luminance": 0.32805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB9C40

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

Preview Lab → · Contrast checker → · Palette generator →

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