#ABA42B#ABA42B

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

Color values

HEX#ABA42B
RGBrgb(171, 164, 43)
HSLhsl(57, 60%, 42%)
HSVhsv(57, 75%, 67%)
CMYKcmyk(0%, 4.1%, 74.9%, 32.9%)
CIE-LABlab(66.05, -11.31, 59.45)
CIE-LCHlch(66.05, 60.51, 100.77°)
OKLaboklab(70.34% -0.0375 0.1306)
OKLCHoklch(70.34% 0.136 106)
XYZxyz(30.5073, 35.3844, 7.5079)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABA42B #2B32AB
analogous
#AB642B #ABA42B #72AB2B
triadic
#ABA42B #2BABA4 #A42BAB
tetradic
#ABA42B #2BAB64 #2B32AB #AB2B72
square
#ABA42B #2BAB64 #2B32AB #AB2B72
split-complementary
#ABA42B #2B72AB #642BAB
monochromatic
#494612 #7A751F #ABA42B #D0C843 #DCD674

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABA42B#FFFFFF#000000##000000
##ABA42B1.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)
#B29E12
Deuteranopia (green-blind)
#B5A334
Tritanopia (blue-blind)
#B8998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #aba42b;
/* rgb */ color: rgb(171, 164, 43);
/* oklch */ color: oklch(70.3% 0.136 106.0);
Tailwind
colors: {
  custom: {
    50: '#c8be6e',
    500: '#aba42b',
    950: '#000000',
  },
}
SCSS
$custom: #aba42b;
$custom-light: #c8be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#aba42b",
  "rgb": {
    "r": 171,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 56.719,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.70342,
    "c": 0.13593,
    "h": 106
  },
  "luminance": 0.35383
}

Semantic roles & 50–950 ramp

primary
#ABA42B
secondary
#6E73C4
accent
#4DE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #ABA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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