#ABAB2D#ABAB2D

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

Color values

HEX#ABAB2D
RGBrgb(171, 171, 45)
HSLhsl(60, 58%, 42%)
HSVhsv(60, 74%, 67%)
CMYKcmyk(0%, 0%, 73.7%, 32.9%)
CIE-LABlab(68.00, -14.85, 60.59)
CIE-LCHlch(68.00, 62.39, 103.77°)
OKLaboklab(71.91% -0.0472 0.1335)
OKLCHoklch(71.91% 0.142 109.5)
XYZxyz(31.8323, 37.9742, 8.1350)
Luminance0.3797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2D #2D2DAB
analogous
#AB6C2D #ABAB2D #6CAB2D
triadic
#ABAB2D #2DABAB #AB2DAB
tetradic
#ABAB2D #2DAB6C #2D2DAB #AB2D6C
square
#ABAB2D #2DAB6C #2D2DAB #AB2D6C
split-complementary
#ABAB2D #2D6CAB #6C2DAB
monochromatic
#4A4A14 #7B7B20 #ABAB2D #CECE47 #DBDB77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAB2D#FFFFFF#000000##000000
##ABAB2D1.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)
#B9A413
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab2d;
/* rgb */ color: rgb(171, 171, 45);
/* oklch */ color: oklch(71.9% 0.142 109.5);
Tailwind
colors: {
  custom: {
    50: '#c8c370',
    500: '#abab2d',
    950: '#000000',
  },
}
SCSS
$custom: #abab2d;
$custom-light: #c8c370;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2d",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 60,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.71906,
    "c": 0.14156,
    "h": 109.5
  },
  "luminance": 0.37973
}

Semantic roles & 50–950 ramp

primary
#ABAB2D
secondary
#7171C3
accent
#46E246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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