#ABAB2A#ABAB2A

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

Color values

HEX#ABAB2A
RGBrgb(171, 171, 42)
HSLhsl(60, 61%, 42%)
HSVhsv(60, 75%, 67%)
CMYKcmyk(0%, 0%, 75.4%, 32.9%)
CIE-LABlab(67.99, -14.98, 61.59)
CIE-LCHlch(67.99, 63.39, 103.67°)
OKLaboklab(71.89% -0.0479 0.135)
OKLCHoklch(71.89% 0.143 109.5)
XYZxyz(31.7766, 37.9519, 7.8416)
Luminance0.3795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2A #2A2AAB
analogous
#AB6B2A #ABAB2A #6BAB2A
triadic
#ABAB2A #2AABAB #AB2AAB
tetradic
#ABAB2A #2AAB6B #2A2AAB #AB2A6B
square
#ABAB2A #2AAB6B #2A2AAB #AB2A6B
split-complementary
#ABAB2A #2A6BAB #6B2AAB
monochromatic
#494912 #7A7A1E #ABAB2A #D1D142 #DDDD73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAB2A#FFFFFF#000000##000000
##ABAB2A1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #abab2a;
/* rgb */ color: rgb(171, 171, 42);
/* oklch */ color: oklch(71.9% 0.143 109.5);
Tailwind
colors: {
  custom: {
    50: '#c8c36e',
    500: '#abab2a',
    950: '#000000',
  },
}
SCSS
$custom: #abab2a;
$custom-light: #c8c36e;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2a",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 60,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71887,
    "c": 0.14325,
    "h": 109.5
  },
  "luminance": 0.37951
}

Semantic roles & 50–950 ramp

primary
#ABAB2A
secondary
#6D6DC4
accent
#44E444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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