#ABAB2F#ABAB2F

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

Color values

HEX#ABAB2F
RGBrgb(171, 171, 47)
HSLhsl(60, 57%, 43%)
HSVhsv(60, 73%, 67%)
CMYKcmyk(0%, 0%, 72.5%, 32.9%)
CIE-LABlab(68.01, -14.76, 59.90)
CIE-LCHlch(68.01, 61.69, 103.84°)
OKLaboklab(71.92% -0.0468 0.1324)
OKLCHoklch(71.92% 0.14 109.5)
XYZxyz(31.8717, 37.9899, 8.3427)
Luminance0.3799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2F #2F2FAB
analogous
#AB6D2F #ABAB2F #6DAB2F
triadic
#ABAB2F #2FABAB #AB2FAB
tetradic
#ABAB2F #2FAB6D #2F2FAB #AB2F6D
square
#ABAB2F #2FAB6D #2F2FAB #AB2F6D
split-complementary
#ABAB2F #2F6DAB #6D2FAB
monochromatic
#4B4B15 #7B7B22 #ABAB2F #CDCD4A #DADA7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAB2F#FFFFFF#000000##000000
##ABAB2F1.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)
#B9A417
Deuteranopia (green-blind)
#BAA838
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab2f;
/* rgb */ color: rgb(171, 171, 47);
/* oklch */ color: oklch(71.9% 0.140 109.5);
Tailwind
colors: {
  custom: {
    50: '#c7c371',
    500: '#abab2f',
    950: '#000000',
  },
}
SCSS
$custom: #abab2f;
$custom-light: #c7c371;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2f",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71918,
    "c": 0.14038,
    "h": 109.5
  },
  "luminance": 0.37989
}

Semantic roles & 50–950 ramp

primary
#ABAB2F
secondary
#7373C3
accent
#48E048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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