#ABAC31#ABAC31

#ABAC31 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.140 H 109.9°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#ABAC31
RGBrgb(171, 172, 49)
HSLhsl(60, 56%, 43%)
HSVhsv(60, 72%, 67%)
CMYKcmyk(0.6%, 0%, 71.5%, 32.5%)
CIE-LABlab(68.30, -15.17, 59.46)
CIE-LCHlch(68.30, 61.37, 104.31°)
OKLaboklab(72.16% -0.0477 0.1318)
OKLCHoklch(72.16% 0.14 109.9)
XYZxyz(32.1026, 38.3856, 8.6232)
Luminance0.3839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC31 #3231AC
analogous
#AC6F31 #ABAC31 #6DAC31
triadic
#ABAC31 #31ABAC #AC31AB
tetradic
#ABAC31 #31AC6F #3231AC #AC316D
square
#ABAC31 #31AC6F #3231AC #AC316D
split-complementary
#ABAC31 #316DAC #6F31AC
monochromatic
#4C4D16 #7C7C23 #ABAC31 #CBCC4E #D9DA7D

Accessibility & contrast

On white

2.42
#ABAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#ABAC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC31
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC31#FFFFFF#000000##000000
##ABAC311.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BBA83A
Tritanopia (blue-blind)
#B7A194
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abac31;
/* rgb */ color: rgb(171, 172, 49);
/* oklch */ color: oklch(72.2% 0.140 109.9);
Tailwind
colors: {
  custom: {
    50: '#c7c472',
    500: '#abac31',
    950: '#000000',
  },
}
SCSS
$custom: #abac31;
$custom-light: #c7c472;
$custom-dark: #000000;
JSON
{
  "hex": "#abac31",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 60.488,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72155,
    "c": 0.14016,
    "h": 109.9
  },
  "luminance": 0.38385
}

Semantic roles & 50–950 ramp

primary
#ABAC31
secondary
#7776C3
accent
#49DF4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #ABAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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