#ABAC40#ABAC40

#ABAC40 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.130 H 109.8°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#ABAC40
RGBrgb(171, 172, 64)
HSLhsl(61, 46%, 46%)
HSVhsv(61, 63%, 67%)
CMYKcmyk(0.6%, 0%, 62.8%, 32.5%)
CIE-LABlab(68.41, -14.30, 53.60)
CIE-LCHlch(68.41, 55.48, 104.94°)
OKLaboklab(72.28% -0.0438 0.1219)
OKLCHoklch(72.28% 0.13 109.8)
XYZxyz(32.4735, 38.5340, 10.5767)
Luminance0.3853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC40 #4140AC
analogous
#AC7740 #ABAC40 #75AC40
triadic
#ABAC40 #40ABAC #AC40AB
tetradic
#ABAC40 #40AC77 #4140AC #AC4075
square
#ABAC40 #40AC77 #4140AC #AC4075
split-complementary
#ABAC40 #4075AC #7740AC
monochromatic
#52531F #7F7F2F #ABAC40 #C4C564 #D5D691

Accessibility & contrast

On white

2.41
#ABAC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#ABAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC40
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC40#FFFFFF#000000##000000
##ABAC401.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BAA847
Tritanopia (blue-blind)
#B6A295
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #abac40;
/* rgb */ color: rgb(171, 172, 64);
/* oklch */ color: oklch(72.3% 0.130 109.8);
Tailwind
colors: {
  custom: {
    50: '#c7c47a',
    500: '#abac40',
    950: '#000000',
  },
}
SCSS
$custom: #abac40;
$custom-light: #c7c47a;
$custom-dark: #000000;
JSON
{
  "hex": "#abac40",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 60.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.72276,
    "c": 0.1295,
    "h": 109.8
  },
  "luminance": 0.38533
}

Semantic roles & 50–950 ramp

primary
#ABAC40
secondary
#8787C1
accent
#52D554
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#131209
muted
#82817B

Preview Lab

Preview with #ABAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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