#ABA42A#ABA42A

#ABA42A is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.3% C 0.137 H 106.0°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#ABA42A
RGBrgb(171, 164, 42)
HSLhsl(57, 61%, 42%)
HSVhsv(57, 75%, 67%)
CMYKcmyk(0%, 4.1%, 75.4%, 32.9%)
CIE-LABlab(66.04, -11.35, 59.79)
CIE-LCHlch(66.04, 60.85, 100.75°)
OKLaboklab(70.34% -0.0377 0.1312)
OKLCHoklch(70.34% 0.137 106)
XYZxyz(30.4892, 35.3771, 7.4125)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABA42A #2A31AB
analogous
#AB642A #ABA42A #72AB2A
triadic
#ABA42A #2AABA4 #A42AAB
tetradic
#ABA42A #2AAB64 #2A31AB #AB2A72
square
#ABA42A #2AAB64 #2A31AB #AB2A72
split-complementary
#ABA42A #2A72AB #642AAB
monochromatic
#494612 #7A751E #ABA42A #D1C942 #DDD773

Accessibility & contrast

On white

2.60
#ABA42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#ABA42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABA42A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABA42A#FFFFFF#000000##000000
##ABA42A1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E0F
Deuteranopia (green-blind)
#B5A333
Tritanopia (blue-blind)
#B8998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #aba42a;
/* rgb */ color: rgb(171, 164, 42);
/* oklch */ color: oklch(70.3% 0.137 106.0);
Tailwind
colors: {
  custom: {
    50: '#c8be6d',
    500: '#aba42a',
    950: '#000000',
  },
}
SCSS
$custom: #aba42a;
$custom-light: #c8be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#aba42a",
  "rgb": {
    "r": 171,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 56.744,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70336,
    "c": 0.1365,
    "h": 106
  },
  "luminance": 0.35376
}

Semantic roles & 50–950 ramp

primary
#ABA42A
secondary
#6D72C4
accent
#4DE444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #ABA42A

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

Preview Lab → · Contrast checker → · Palette generator →

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