#ABAB31#ABAB31

#ABAB31 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.9% C 0.139 H 109.4°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#ABAB31
RGBrgb(171, 171, 49)
HSLhsl(60, 55%, 43%)
HSVhsv(60, 71%, 67%)
CMYKcmyk(0%, 0%, 71.3%, 32.9%)
CIE-LABlab(68.03, -14.66, 59.19)
CIE-LCHlch(68.03, 60.98, 103.91°)
OKLaboklab(71.93% -0.0463 0.1312)
OKLCHoklch(71.93% 0.139 109.4)
XYZxyz(31.9130, 38.0064, 8.5600)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB31 #3131AB
analogous
#AB6E31 #ABAB31 #6EAB31
triadic
#ABAB31 #31ABAB #AB31AB
tetradic
#ABAB31 #31AB6E #3131AB #AB316E
square
#ABAB31 #31AB6E #3131AB #AB316E
split-complementary
#ABAB31 #316EAB #6E31AB
monochromatic
#4C4C16 #7B7B23 #ABAB31 #CCCC4D #DADA7D

Accessibility & contrast

On white

2.44
#ABAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#ABAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAB31
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAB31#FFFFFF#000000##000000
##ABAB311.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #abab31;
/* rgb */ color: rgb(171, 171, 49);
/* oklch */ color: oklch(71.9% 0.139 109.4);
Tailwind
colors: {
  custom: {
    50: '#c7c372',
    500: '#abab31',
    950: '#000000',
  },
}
SCSS
$custom: #abab31;
$custom-light: #c7c372;
$custom-dark: #000000;
JSON
{
  "hex": "#abab31",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71932,
    "c": 0.13914,
    "h": 109.4
  },
  "luminance": 0.38005
}

Semantic roles & 50–950 ramp

primary
#ABAB31
secondary
#7575C2
accent
#49DF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #ABAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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