#ABAC27#ABAC27

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

Color values

HEX#ABAC27
RGBrgb(171, 172, 39)
HSLhsl(60, 63%, 41%)
HSVhsv(60, 77%, 67%)
CMYKcmyk(0.6%, 0%, 77.3%, 32.5%)
CIE-LABlab(68.25, -15.62, 62.79)
CIE-LCHlch(68.25, 64.70, 103.97°)
OKLaboklab(72.09% -0.0499 0.137)
OKLCHoklch(72.09% 0.146 110)
XYZxyz(31.9145, 38.3104, 7.6326)
Luminance0.3831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC27 #2827AC
analogous
#AC6B27 #ABAC27 #69AC27
triadic
#ABAC27 #27ABAC #AC27AB
tetradic
#ABAC27 #27AC6B #2827AC #AC2769
square
#ABAC27 #27AC6B #2827AC #AC2769
split-complementary
#ABAC27 #2769AC #6B27AC
monochromatic
#484810 #797A1C #ABAC27 #D2D33D #DEDE6F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAC27#FFFFFF#000000##000000
##ABAC271.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)
#BAA400
Deuteranopia (green-blind)
#BCA833
Tritanopia (blue-blind)
#B7A193
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abac27;
/* rgb */ color: rgb(171, 172, 39);
/* oklch */ color: oklch(72.1% 0.146 110.0);
Tailwind
colors: {
  custom: {
    50: '#c8c46d',
    500: '#abac27',
    950: '#000000',
  },
}
SCSS
$custom: #abac27;
$custom-light: #c8c46d;
$custom-dark: #000000;
JSON
{
  "hex": "#abac27",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 39
  },
  "hsl": {
    "h": 60.451,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72093,
    "c": 0.14582,
    "h": 110
  },
  "luminance": 0.38309
}

Semantic roles & 50–950 ramp

primary
#ABAC27
secondary
#6A6AC5
accent
#42E643
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAC27

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

Preview Lab → · Contrast checker → · Palette generator →

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