#ABAF28#ABAF28

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

Color values

HEX#ABAF28
RGBrgb(171, 175, 40)
HSLhsl(62, 63%, 42%)
HSVhsv(62, 77%, 69%)
CMYKcmyk(2.3%, 0%, 77.1%, 31.4%)
CIE-LABlab(69.09, -17.11, 63.25)
CIE-LCHlch(69.09, 65.52, 105.13°)
OKLaboklab(72.77% -0.0539 0.1382)
OKLCHoklch(72.77% 0.148 111.3)
XYZxyz(32.5087, 39.4719, 7.9135)
Luminance0.3947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF28 #2C28AF
analogous
#AF7028 #ABAF28 #67AF28
triadic
#ABAF28 #28ABAF #AF28AB
tetradic
#ABAF28 #28AF70 #2C28AF #AF2867
square
#ABAF28 #28AF70 #2C28AF #AF2867
split-complementary
#ABAF28 #2867AF #7028AF
monochromatic
#4A4B11 #7A7D1D #ABAF28 #CFD441 #DCDF73

Accessibility & contrast

On white

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

On black

8.89
#ABAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF28
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF28#FFFFFF#000000##000000
##ABAF281.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #abaf28;
/* rgb */ color: rgb(171, 175, 40);
/* oklch */ color: oklch(72.8% 0.148 111.3);
Tailwind
colors: {
  custom: {
    50: '#c8c66e',
    500: '#abaf28',
    950: '#000000',
  },
}
SCSS
$custom: #abaf28;
$custom-light: #c8c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf28",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 61.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72769,
    "c": 0.14833,
    "h": 111.3
  },
  "luminance": 0.39471
}

Semantic roles & 50–950 ramp

primary
#ABAF28
secondary
#6F6DC6
accent
#42E647
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #ABAF28

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

Preview Lab → · Contrast checker → · Palette generator →

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