#ABAF2A#ABAF2A

#ABAF2A is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.8% C 0.147 H 111.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#ABAF2A
RGBrgb(171, 175, 42)
HSLhsl(62, 61%, 43%)
HSVhsv(62, 76%, 69%)
CMYKcmyk(2.3%, 0%, 76%, 31.4%)
CIE-LABlab(69.10, -17.02, 62.62)
CIE-LCHlch(69.10, 64.89, 105.21°)
OKLaboklab(72.78% -0.0536 0.1372)
OKLCHoklch(72.78% 0.147 111.3)
XYZxyz(32.5436, 39.4859, 8.0973)
Luminance0.3948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF2A #2E2AAF
analogous
#AF712A #ABAF2A #68AF2A
triadic
#ABAF2A #2AABAF #AF2AAB
tetradic
#ABAF2A #2AAF71 #2E2AAF #AF2A68
square
#ABAF2A #2AAF71 #2E2AAF #AF2A68
split-complementary
#ABAF2A #2A68AF #712AAF
monochromatic
#4B4C12 #7B7E1E #ABAF2A #CED244 #DBDE75

Accessibility & contrast

On white

2.36
#ABAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#ABAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF2A
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF2A#FFFFFF#000000##000000
##ABAF2A1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA707
Deuteranopia (green-blind)
#BEAA35
Tritanopia (blue-blind)
#B7A496
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf2a;
/* rgb */ color: rgb(171, 175, 42);
/* oklch */ color: oklch(72.8% 0.147 111.3);
Tailwind
colors: {
  custom: {
    50: '#c8c66f',
    500: '#abaf2a',
    950: '#000000',
  },
}
SCSS
$custom: #abaf2a;
$custom-light: #c8c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf2a",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 61.805,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.7278,
    "c": 0.14729,
    "h": 111.3
  },
  "luminance": 0.39485
}

Semantic roles & 50–950 ramp

primary
#ABAF2A
secondary
#726FC6
accent
#43E448
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #ABAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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