#AB972F#AB972F

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

Color values

HEX#AB972F
RGBrgb(171, 151, 47)
HSLhsl(50, 57%, 43%)
HSVhsv(50, 73%, 67%)
CMYKcmyk(0%, 11.7%, 72.5%, 32.9%)
CIE-LABlab(62.51, -4.21, 54.56)
CIE-LCHlch(62.51, 54.73, 94.42°)
OKLaboklab(67.54% -0.017 0.1211)
OKLCHoklch(67.54% 0.122 98)
XYZxyz(28.3757, 30.9978, 7.1773)
Luminance0.3100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB972F #2F43AB
analogous
#AB592F #AB972F #81AB2F
triadic
#AB972F #2FAB97 #972FAB
tetradic
#AB972F #2FAB59 #2F43AB #AB2F81
square
#AB972F #2FAB59 #2F43AB #AB2F81
split-complementary
#AB972F #2F81AB #592FAB
monochromatic
#4B4215 #7B6D22 #AB972F #CDB84A #DACB7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB972F#FFFFFF#000000##000000
##AB972F1.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)
#A6931F
Deuteranopia (green-blind)
#AB9A35
Tritanopia (blue-blind)
#B98C82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab972f;
/* rgb */ color: rgb(171, 151, 47);
/* oklch */ color: oklch(67.5% 0.122 98.0);
Tailwind
colors: {
  custom: {
    50: '#c8b56e',
    500: '#ab972f',
    950: '#000000',
  },
}
SCSS
$custom: #ab972f;
$custom-light: #c8b56e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab972f",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 47
  },
  "hsl": {
    "h": 50.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.67537,
    "c": 0.12225,
    "h": 98
  },
  "luminance": 0.30996
}

Semantic roles & 50–950 ramp

primary
#AB972F
secondary
#7380C3
accent
#60E048
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AB972F

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

Preview Lab → · Contrast checker → · Palette generator →

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