#AB972C#AB972C

#AB972C 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.19:1 contrast (WCAG AA passes).

Color values

HEX#AB972C
RGBrgb(171, 151, 44)
HSLhsl(51, 59%, 42%)
HSVhsv(51, 74%, 67%)
CMYKcmyk(0%, 11.7%, 74.3%, 32.9%)
CIE-LABlab(62.49, -4.36, 55.70)
CIE-LCHlch(62.49, 55.87, 94.47°)
OKLaboklab(67.52% -0.0178 0.1229)
OKLCHoklch(67.52% 0.124 98.2)
XYZxyz(28.3172, 30.9744, 6.8695)
Luminance0.3097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB972C #2C40AB
analogous
#AB572C #AB972C #80AB2C
triadic
#AB972C #2CAB97 #972CAB
tetradic
#AB972C #2CAB57 #2C40AB #AB2C80
square
#AB972C #2CAB57 #2C40AB #AB2C80
split-complementary
#AB972C #2C80AB #572CAB
monochromatic
#4A4113 #7A6C1F #AB972C #CFB945 #DCCC76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB972C#FFFFFF#000000##000000
##AB972C1.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)
#A6931A
Deuteranopia (green-blind)
#AC9A33
Tritanopia (blue-blind)
#B98B82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab972c;
/* rgb */ color: rgb(171, 151, 44);
/* oklch */ color: oklch(67.5% 0.124 98.2);
Tailwind
colors: {
  custom: {
    50: '#c8b56d',
    500: '#ab972c',
    950: '#000000',
  },
}
SCSS
$custom: #ab972c;
$custom-light: #c8b56d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab972c",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 44
  },
  "hsl": {
    "h": 50.551,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67515,
    "c": 0.12417,
    "h": 98.2
  },
  "luminance": 0.30973
}

Semantic roles & 50–950 ramp

primary
#AB972C
secondary
#6F7DC3
accent
#5EE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB972C

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

Preview Lab → · Contrast checker → · Palette generator →

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