#ABAB2B#ABAB2B

#ABAB2B 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#ABAB2B
RGBrgb(171, 171, 43)
HSLhsl(60, 60%, 42%)
HSVhsv(60, 75%, 67%)
CMYKcmyk(0%, 0%, 74.9%, 32.9%)
CIE-LABlab(67.99, -14.94, 61.26)
CIE-LCHlch(67.99, 63.06, 103.70°)
OKLaboklab(71.89% -0.0477 0.1345)
OKLCHoklch(71.89% 0.143 109.5)
XYZxyz(31.7947, 37.9591, 7.9370)
Luminance0.3796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2B #2B2BAB
analogous
#AB6B2B #ABAB2B #6BAB2B
triadic
#ABAB2B #2BABAB #AB2BAB
tetradic
#ABAB2B #2BAB6B #2B2BAB #AB2B6B
square
#ABAB2B #2BAB6B #2B2BAB #AB2B6B
split-complementary
#ABAB2B #2B6BAB #6B2BAB
monochromatic
#494912 #7A7A1F #ABAB2B #D0D043 #DCDC74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAB2B#FFFFFF#000000##000000
##ABAB2B1.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)
#B9A40E
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab2b;
/* rgb */ color: rgb(171, 171, 43);
/* oklch */ color: oklch(71.9% 0.143 109.5);
Tailwind
colors: {
  custom: {
    50: '#c8c36f',
    500: '#abab2b',
    950: '#000000',
  },
}
SCSS
$custom: #abab2b;
$custom-light: #c8c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2b",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71893,
    "c": 0.1427,
    "h": 109.5
  },
  "luminance": 0.37958
}

Semantic roles & 50–950 ramp

primary
#ABAB2B
secondary
#6E6EC4
accent
#45E345
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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