#ABAF2C#ABAF2C

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

Color values

HEX#ABAF2C
RGBrgb(171, 175, 44)
HSLhsl(62, 60%, 43%)
HSVhsv(62, 75%, 69%)
CMYKcmyk(2.3%, 0%, 74.9%, 31.4%)
CIE-LABlab(69.11, -16.94, 61.98)
CIE-LCHlch(69.11, 64.25, 105.29°)
OKLaboklab(72.79% -0.0531 0.1362)
OKLCHoklch(72.79% 0.146 111.3)
XYZxyz(32.5803, 39.5006, 8.2905)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF2C #302CAF
analogous
#AF712C #ABAF2C #69AF2C
triadic
#ABAF2C #2CABAF #AF2CAB
tetradic
#ABAF2C #2CAF71 #302CAF #AF2C69
square
#ABAF2C #2CAF71 #302CAF #AF2C69
split-complementary
#ABAF2C #2C69AF #712CAF
monochromatic
#4B4D13 #7B7E20 #ABAF2C #CDD147 #DADD78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAF2C#FFFFFF#000000##000000
##ABAF2C1.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)
#BDA70E
Deuteranopia (green-blind)
#BEAA37
Tritanopia (blue-blind)
#B7A496
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf2c;
/* rgb */ color: rgb(171, 175, 44);
/* oklch */ color: oklch(72.8% 0.146 111.3);
Tailwind
colors: {
  custom: {
    50: '#c8c670',
    500: '#abaf2c',
    950: '#000000',
  },
}
SCSS
$custom: #abaf2c;
$custom-light: #c8c670;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf2c",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 61.832,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72792,
    "c": 0.1462,
    "h": 111.3
  },
  "luminance": 0.395
}

Semantic roles & 50–950 ramp

primary
#ABAF2C
secondary
#7472C5
accent
#45E34A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #ABAF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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