#AB972B#AB972B

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

Color values

HEX#AB972B
RGBrgb(171, 151, 43)
HSLhsl(51, 60%, 42%)
HSVhsv(51, 75%, 67%)
CMYKcmyk(0%, 11.7%, 74.9%, 32.9%)
CIE-LABlab(62.48, -4.40, 56.07)
CIE-LCHlch(62.48, 56.24, 94.49°)
OKLaboklab(67.51% -0.018 0.1235)
OKLCHoklch(67.51% 0.125 98.3)
XYZxyz(28.2986, 30.9670, 6.7717)
Luminance0.3097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB972B #2B3FAB
analogous
#AB572B #AB972B #7FAB2B
triadic
#AB972B #2BAB97 #972BAB
tetradic
#AB972B #2BAB57 #2B3FAB #AB2B7F
square
#AB972B #2BAB57 #2B3FAB #AB2B7F
split-complementary
#AB972B #2B7FAB #572BAB
monochromatic
#494112 #7A6C1F #AB972B #D0BA43 #DCCC74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB972B#FFFFFF#000000##000000
##AB972B1.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)
#A69318
Deuteranopia (green-blind)
#AC9A32
Tritanopia (blue-blind)
#B98B82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab972b;
/* rgb */ color: rgb(171, 151, 43);
/* oklch */ color: oklch(67.5% 0.125 98.3);
Tailwind
colors: {
  custom: {
    50: '#c8b56c',
    500: '#ab972b',
    950: '#000000',
  },
}
SCSS
$custom: #ab972b;
$custom-light: #c8b56c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab972b",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 43
  },
  "hsl": {
    "h": 50.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.67508,
    "c": 0.12479,
    "h": 98.3
  },
  "luminance": 0.30966
}

Semantic roles & 50–950 ramp

primary
#AB972B
secondary
#6E7CC4
accent
#5EE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AB972B

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

Preview Lab → · Contrast checker → · Palette generator →

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