#ABAB28#ABAB28

#ABAB28 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 71.9% C 0.144 H 109.5°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#ABAB28
RGBrgb(171, 171, 40)
HSLhsl(60, 62%, 41%)
HSVhsv(60, 77%, 67%)
CMYKcmyk(0%, 0%, 76.6%, 32.9%)
CIE-LABlab(67.97, -15.06, 62.23)
CIE-LCHlch(67.97, 64.03, 103.61°)
OKLaboklab(71.88% -0.0483 0.136)
OKLCHoklch(71.88% 0.144 109.5)
XYZxyz(31.7417, 37.9379, 7.6578)
Luminance0.3794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB28 #2828AB
analogous
#AB6A28 #ABAB28 #6AAB28
triadic
#ABAB28 #28ABAB #AB28AB
tetradic
#ABAB28 #28AB6A #2828AB #AB286A
square
#ABAB28 #28AB6A #2828AB #AB286A
split-complementary
#ABAB28 #286AAB #6A28AB
monochromatic
#484811 #79791C #ABAB28 #D2D23E #DEDE70

Accessibility & contrast

On white

2.45
#ABAB28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#ABAB28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAB28
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAB28#FFFFFF#000000##000000
##ABAB281.002.458.598.59
#FFFFFF2.451.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A404
Deuteranopia (green-blind)
#BBA733
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab28;
/* rgb */ color: rgb(171, 171, 40);
/* oklch */ color: oklch(71.9% 0.144 109.5);
Tailwind
colors: {
  custom: {
    50: '#c8c36d',
    500: '#abab28',
    950: '#000000',
  },
}
SCSS
$custom: #abab28;
$custom-light: #c8c36d;
$custom-dark: #000000;
JSON
{
  "hex": "#abab28",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71876,
    "c": 0.14431,
    "h": 109.5
  },
  "luminance": 0.37937
}

Semantic roles & 50–950 ramp

primary
#ABAB28
secondary
#6A6AC4
accent
#43E543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB28

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

Preview Lab → · Contrast checker → · Palette generator →

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