#AB972A#AB972A

#AB972A is a light, vivid yellow. Relative luminance 0.310; OKLCH L 67.5% C 0.125 H 98.4°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#AB972A
RGBrgb(171, 151, 42)
HSLhsl(51, 61%, 42%)
HSVhsv(51, 75%, 67%)
CMYKcmyk(0%, 11.7%, 75.4%, 32.9%)
CIE-LABlab(62.47, -4.45, 56.43)
CIE-LCHlch(62.47, 56.61, 94.51°)
OKLaboklab(67.5% -0.0183 0.1241)
OKLCHoklch(67.5% 0.125 98.4)
XYZxyz(28.2805, 30.9597, 6.6763)
Luminance0.3096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB972A #2A3EAB
analogous
#AB572A #AB972A #7FAB2A
triadic
#AB972A #2AAB97 #972AAB
tetradic
#AB972A #2AAB57 #2A3EAB #AB2A7F
square
#AB972A #2AAB57 #2A3EAB #AB2A7F
split-complementary
#AB972A #2A7FAB #572AAB
monochromatic
#494012 #7A6C1E #AB972A #D1BA42 #DDCC73

Accessibility & contrast

On white

2.92
#AB972A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#AB972A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB972A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB972A#FFFFFF#000000##000000
##AB972A1.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69316
Deuteranopia (green-blind)
#AC9A31
Tritanopia (blue-blind)
#B98B82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab972a;
/* rgb */ color: rgb(171, 151, 42);
/* oklch */ color: oklch(67.5% 0.125 98.4);
Tailwind
colors: {
  custom: {
    50: '#c8b56c',
    500: '#ab972a',
    950: '#000000',
  },
}
SCSS
$custom: #ab972a;
$custom-light: #c8b56c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab972a",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 42
  },
  "hsl": {
    "h": 50.698,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.67501,
    "c": 0.12539,
    "h": 98.4
  },
  "luminance": 0.30958
}

Semantic roles & 50–950 ramp

primary
#AB972A
secondary
#6D7AC4
accent
#5DE444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB972A

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

Preview Lab → · Contrast checker → · Palette generator →

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