#ABAF26#ABAF26

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

Color values

HEX#ABAF26
RGBrgb(171, 175, 38)
HSLhsl(62, 64%, 42%)
HSVhsv(62, 78%, 69%)
CMYKcmyk(2.3%, 0%, 78.3%, 31.4%)
CIE-LABlab(69.08, -17.18, 63.85)
CIE-LCHlch(69.08, 66.12, 105.06°)
OKLaboklab(72.76% -0.0543 0.1391)
OKLCHoklch(72.76% 0.149 111.3)
XYZxyz(32.4756, 39.4587, 7.7389)
Luminance0.3946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF26 #2A26AF
analogous
#AF6F26 #ABAF26 #67AF26
triadic
#ABAF26 #26ABAF #AF26AB
tetradic
#ABAF26 #26AF6F #2A26AF #AF2667
square
#ABAF26 #26AF6F #2A26AF #AF2667
split-complementary
#ABAF26 #2667AF #6F26AF
monochromatic
#494A10 #7A7D1B #ABAF26 #D1D53D #DDE070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ABAF26#FFFFFF#000000##000000
##ABAF261.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)
#BEAA32
Tritanopia (blue-blind)
#B7A496
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf26;
/* rgb */ color: rgb(171, 175, 38);
/* oklch */ color: oklch(72.8% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#c8c66d',
    500: '#abaf26',
    950: '#000000',
  },
}
SCSS
$custom: #abaf26;
$custom-light: #c8c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf26",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 61.752,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72758,
    "c": 0.14932,
    "h": 111.3
  },
  "luminance": 0.39458
}

Semantic roles & 50–950 ramp

primary
#ABAF26
secondary
#6D6AC7
accent
#40E745
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #ABAF26

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

Preview Lab → · Contrast checker → · Palette generator →

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