#ABAC2A#ABAC2A

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

Color values

HEX#ABAC2A
RGBrgb(171, 172, 42)
HSLhsl(60, 61%, 42%)
HSVhsv(60, 76%, 67%)
CMYKcmyk(0.6%, 0%, 75.6%, 32.5%)
CIE-LABlab(68.26, -15.49, 61.85)
CIE-LCHlch(68.26, 63.76, 104.06°)
OKLaboklab(72.11% -0.0493 0.1356)
OKLCHoklch(72.11% 0.144 110)
XYZxyz(31.9662, 38.3311, 7.9048)
Luminance0.3833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC2A #2B2AAC
analogous
#AC6C2A #ABAC2A #6AAC2A
triadic
#ABAC2A #2AABAC #AC2AAB
tetradic
#ABAC2A #2AAC6C #2B2AAC #AC2A6A
square
#ABAC2A #2AAC6C #2B2AAC #AC2A6A
split-complementary
#ABAC2A #2A6AAC #6C2AAC
monochromatic
#494A12 #7A7B1E #ABAC2A #D0D142 #DCDD73

Accessibility & contrast

On white

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

On black

8.67
#ABAC2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC2A
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC2A#FFFFFF#000000##000000
##ABAC2A1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #abac2a;
/* rgb */ color: rgb(171, 172, 42);
/* oklch */ color: oklch(72.1% 0.144 110.0);
Tailwind
colors: {
  custom: {
    50: '#c8c46e',
    500: '#abac2a',
    950: '#000000',
  },
}
SCSS
$custom: #abac2a;
$custom-light: #c8c46e;
$custom-dark: #000000;
JSON
{
  "hex": "#abac2a",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 42
  },
  "hsl": {
    "h": 60.462,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.7211,
    "c": 0.14424,
    "h": 110
  },
  "luminance": 0.3833
}

Semantic roles & 50–950 ramp

primary
#ABAC2A
secondary
#6E6DC4
accent
#44E445
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAC2A

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

Preview Lab → · Contrast checker → · Palette generator →

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