#ABAC21#ABAC21

#ABAC21 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.1% C 0.149 H 110.1°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#ABAC21
RGBrgb(171, 172, 33)
HSLhsl(60, 68%, 40%)
HSVhsv(60, 81%, 67%)
CMYKcmyk(0.6%, 0%, 80.8%, 32.5%)
CIE-LABlab(68.22, -15.83, 64.52)
CIE-LCHlch(68.22, 66.44, 103.79°)
OKLaboklab(72.06% -0.051 0.1396)
OKLCHoklch(72.06% 0.149 110.1)
XYZxyz(31.8228, 38.2737, 7.1498)
Luminance0.3827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC21 #2221AC
analogous
#AC6821 #ABAC21 #65AC21
triadic
#ABAC21 #21ABAC #AC21AB
tetradic
#ABAC21 #21AC68 #2221AC #AC2165
square
#ABAC21 #21AC68 #2221AC #AC2165
split-complementary
#ABAC21 #2165AC #6821AC
monochromatic
#45450D #787917 #ABAC21 #D7D832 #E1E266

Accessibility & contrast

On white

2.43
#ABAC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#ABAC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC21
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC21#FFFFFF#000000##000000
##ABAC211.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA82E
Tritanopia (blue-blind)
#B8A193
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abac21;
/* rgb */ color: rgb(171, 172, 33);
/* oklch */ color: oklch(72.1% 0.149 110.1);
Tailwind
colors: {
  custom: {
    50: '#c8c46a',
    500: '#abac21',
    950: '#000000',
  },
}
SCSS
$custom: #abac21;
$custom-light: #c8c46a;
$custom-dark: #000000;
JSON
{
  "hex": "#abac21",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 60.432,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72063,
    "c": 0.14863,
    "h": 110.1
  },
  "luminance": 0.38273
}

Semantic roles & 50–950 ramp

primary
#ABAC21
secondary
#6362C7
accent
#3DEB3E
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141207
muted
#82817A

Preview Lab

Preview with #ABAC21

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

Preview Lab → · Contrast checker → · Palette generator →

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