#ABAB2C#ABAB2C

#ABAB2C 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#ABAB2C
RGBrgb(171, 171, 44)
HSLhsl(60, 59%, 42%)
HSVhsv(60, 74%, 67%)
CMYKcmyk(0%, 0%, 74.3%, 32.9%)
CIE-LABlab(68.00, -14.89, 60.93)
CIE-LCHlch(68.00, 62.73, 103.74°)
OKLaboklab(71.9% -0.0474 0.134)
OKLCHoklch(71.9% 0.142 109.5)
XYZxyz(31.8133, 37.9666, 8.0348)
Luminance0.3797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2C #2C2CAB
analogous
#AB6C2C #ABAB2C #6CAB2C
triadic
#ABAB2C #2CABAB #AB2CAB
tetradic
#ABAB2C #2CAB6C #2C2CAB #AB2C6C
square
#ABAB2C #2CAB6C #2C2CAB #AB2C6C
split-complementary
#ABAB2C #2C6CAB #6C2CAB
monochromatic
#4A4A13 #7A7A1F #ABAB2C #CFCF45 #DCDC76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAB2C#FFFFFF#000000##000000
##ABAB2C1.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)
#B9A410
Deuteranopia (green-blind)
#BBA836
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab2c;
/* rgb */ color: rgb(171, 171, 44);
/* oklch */ color: oklch(71.9% 0.142 109.5);
Tailwind
colors: {
  custom: {
    50: '#c8c36f',
    500: '#abab2c',
    950: '#000000',
  },
}
SCSS
$custom: #abab2c;
$custom-light: #c8c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2c",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 60,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71899,
    "c": 0.14214,
    "h": 109.5
  },
  "luminance": 0.37966
}

Semantic roles & 50–950 ramp

primary
#ABAB2C
secondary
#6F6FC3
accent
#46E246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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