#AB972D#AB972D

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

Color values

HEX#AB972D
RGBrgb(171, 151, 45)
HSLhsl(50, 58%, 42%)
HSVhsv(50, 74%, 67%)
CMYKcmyk(0%, 11.7%, 73.7%, 32.9%)
CIE-LABlab(62.49, -4.31, 55.33)
CIE-LCHlch(62.49, 55.49, 94.45°)
OKLaboklab(67.52% -0.0175 0.1223)
OKLCHoklch(67.52% 0.124 98.2)
XYZxyz(28.3362, 30.9820, 6.9697)
Luminance0.3098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB972D #2D41AB
analogous
#AB582D #AB972D #80AB2D
triadic
#AB972D #2DAB97 #972DAB
tetradic
#AB972D #2DAB58 #2D41AB #AB2D80
square
#AB972D #2DAB58 #2D41AB #AB2D80
split-complementary
#AB972D #2D80AB #582DAB
monochromatic
#4A4114 #7B6C20 #AB972D #CEB947 #DBCB77

Accessibility & contrast

On white

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

On black

7.20
#AB972D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB972D
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB972D#FFFFFF#000000##000000
##AB972D1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab972d;
/* rgb */ color: rgb(171, 151, 45);
/* oklch */ color: oklch(67.5% 0.124 98.2);
Tailwind
colors: {
  custom: {
    50: '#c8b56d',
    500: '#ab972d',
    950: '#000000',
  },
}
SCSS
$custom: #ab972d;
$custom-light: #c8b56d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab972d",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 45
  },
  "hsl": {
    "h": 50.476,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.67522,
    "c": 0.12354,
    "h": 98.2
  },
  "luminance": 0.30981
}

Semantic roles & 50–950 ramp

primary
#AB972D
secondary
#717EC3
accent
#5FE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB972D

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

Preview Lab → · Contrast checker → · Palette generator →

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