#ABAB2E#ABAB2E

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

Color values

HEX#ABAB2E
RGBrgb(171, 171, 46)
HSLhsl(60, 58%, 43%)
HSVhsv(60, 73%, 67%)
CMYKcmyk(0%, 0%, 73.1%, 32.9%)
CIE-LABlab(68.01, -14.80, 60.25)
CIE-LCHlch(68.01, 62.04, 103.80°)
OKLaboklab(71.91% -0.047 0.1329)
OKLCHoklch(71.91% 0.141 109.5)
XYZxyz(31.8518, 37.9820, 8.2376)
Luminance0.3798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB2E #2E2EAB
analogous
#AB6C2E #ABAB2E #6CAB2E
triadic
#ABAB2E #2EABAB #AB2EAB
tetradic
#ABAB2E #2EAB6C #2E2EAB #AB2E6C
square
#ABAB2E #2EAB6C #2E2EAB #AB2E6C
split-complementary
#ABAB2E #2E6CAB #6C2EAB
monochromatic
#4B4B14 #7B7B21 #ABAB2E #CECE48 #DBDB79

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #abab2e;
/* rgb */ color: rgb(171, 171, 46);
/* oklch */ color: oklch(71.9% 0.141 109.5);
Tailwind
colors: {
  custom: {
    50: '#c7c370',
    500: '#abab2e',
    950: '#000000',
  },
}
SCSS
$custom: #abab2e;
$custom-light: #c7c370;
$custom-dark: #000000;
JSON
{
  "hex": "#abab2e",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 46
  },
  "hsl": {
    "h": 60,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71912,
    "c": 0.14098,
    "h": 109.5
  },
  "luminance": 0.37981
}

Semantic roles & 50–950 ramp

primary
#ABAB2E
secondary
#7272C3
accent
#47E147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB2E

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

Preview Lab → · Contrast checker → · Palette generator →

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