#ABAC22#ABAC22

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

Color values

HEX#ABAC22
RGBrgb(171, 172, 34)
HSLhsl(60, 67%, 40%)
HSVhsv(60, 80%, 67%)
CMYKcmyk(0.6%, 0%, 80.2%, 32.5%)
CIE-LABlab(68.23, -15.80, 64.25)
CIE-LCHlch(68.23, 66.16, 103.82°)
OKLaboklab(72.07% -0.0508 0.1392)
OKLCHoklch(72.07% 0.148 110)
XYZxyz(31.8371, 38.2794, 7.2247)
Luminance0.3828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC22 #2322AC
analogous
#AC6822 #ABAC22 #66AC22
triadic
#ABAC22 #22ABAC #AC22AB
tetradic
#ABAC22 #22AC68 #2322AC #AC2266
square
#ABAC22 #22AC68 #2322AC #AC2266
split-complementary
#ABAC22 #2266AC #6822AC
monochromatic
#45460E #787918 #ABAC22 #D6D734 #E0E167

Accessibility & contrast

On white

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

On black

8.66
#ABAC22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC22
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC22#FFFFFF#000000##000000
##ABAC221.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #abac22;
/* rgb */ color: rgb(171, 172, 34);
/* oklch */ color: oklch(72.1% 0.148 110.0);
Tailwind
colors: {
  custom: {
    50: '#c8c46b',
    500: '#abac22',
    950: '#000000',
  },
}
SCSS
$custom: #abac22;
$custom-light: #c8c46b;
$custom-dark: #000000;
JSON
{
  "hex": "#abac22",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 34
  },
  "hsl": {
    "h": 60.435,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.72068,
    "c": 0.1482,
    "h": 110
  },
  "luminance": 0.38278
}

Semantic roles & 50–950 ramp

primary
#ABAC22
secondary
#6463C7
accent
#3EEA3F
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141207
muted
#82817A

Preview Lab

Preview with #ABAC22

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

Preview Lab → · Contrast checker → · Palette generator →

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