#ABAC28#ABAC28

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

Color values

HEX#ABAC28
RGBrgb(171, 172, 40)
HSLhsl(60, 62%, 42%)
HSVhsv(60, 77%, 67%)
CMYKcmyk(0.6%, 0%, 76.7%, 32.5%)
CIE-LABlab(68.25, -15.58, 62.48)
CIE-LCHlch(68.25, 64.40, 104.00°)
OKLaboklab(72.1% -0.0497 0.1365)
OKLCHoklch(72.1% 0.145 110)
XYZxyz(31.9313, 38.3171, 7.7210)
Luminance0.3832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC28 #2928AC
analogous
#AC6B28 #ABAC28 #69AC28
triadic
#ABAC28 #28ABAC #AC28AB
tetradic
#ABAC28 #28AC6B #2928AC #AC2869
square
#ABAC28 #28AC6B #2928AC #AC2869
split-complementary
#ABAC28 #2869AC #6B28AC
monochromatic
#484911 #7A7A1C #ABAC28 #D1D23F #DDDE71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAC28#FFFFFF#000000##000000
##ABAC281.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA403
Deuteranopia (green-blind)
#BBA833
Tritanopia (blue-blind)
#B7A193
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abac28;
/* rgb */ color: rgb(171, 172, 40);
/* oklch */ color: oklch(72.1% 0.145 110.0);
Tailwind
colors: {
  custom: {
    50: '#c8c46d',
    500: '#abac28',
    950: '#000000',
  },
}
SCSS
$custom: #abac28;
$custom-light: #c8c46d;
$custom-dark: #000000;
JSON
{
  "hex": "#abac28",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 40
  },
  "hsl": {
    "h": 60.455,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.72098,
    "c": 0.1453,
    "h": 110
  },
  "luminance": 0.38316
}

Semantic roles & 50–950 ramp

primary
#ABAC28
secondary
#6C6BC5
accent
#42E544
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAC28

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

Preview Lab → · Contrast checker → · Palette generator →

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