#ABA242#ABA242

#ABA242 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.1% C 0.117 H 104.0°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#ABA242
RGBrgb(171, 162, 66)
HSLhsl(55, 44%, 46%)
HSVhsv(55, 61%, 67%)
CMYKcmyk(0%, 5.3%, 61.4%, 32.9%)
CIE-LABlab(65.67, -8.95, 49.76)
CIE-LCHlch(65.67, 50.56, 100.19°)
OKLaboklab(70.09% -0.0283 0.114)
OKLCHoklch(70.09% 0.118 104)
XYZxyz(30.6994, 34.8930, 10.2711)
Luminance0.3489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABA242 #424BAB
analogous
#AB6E42 #ABA242 #80AB42
triadic
#ABA242 #42ABA2 #A242AB
tetradic
#ABA242 #42AB6E #424BAB #AB4280
square
#ABA242 #42AB6E #424BAB #AB4280
split-complementary
#ABA242 #4280AB #6E42AB
monochromatic
#534E20 #7F7831 #ABA242 #C4BC66 #D5CF92

Accessibility & contrast

On white

2.63
#ABA242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#ABA242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABA242
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABA242#FFFFFF#000000##000000
##ABA2421.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D37
Deuteranopia (green-blind)
#B3A247
Tritanopia (blue-blind)
#B7988D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #aba242;
/* rgb */ color: rgb(171, 162, 66);
/* oklch */ color: oklch(70.1% 0.117 104.0);
Tailwind
colors: {
  custom: {
    50: '#c7bd7a',
    500: '#aba242',
    950: '#000000',
  },
}
SCSS
$custom: #aba242;
$custom-light: #c7bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#aba242",
  "rgb": {
    "r": 171,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 54.857,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70093,
    "c": 0.1175,
    "h": 104
  },
  "luminance": 0.34892
}

Semantic roles & 50–950 ramp

primary
#ABA242
secondary
#888DC0
accent
#5FD454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #ABA242

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

Preview Lab → · Contrast checker → · Palette generator →

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