#ABAF40#ABAF40

#ABAF40 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.9% C 0.133 H 111.2°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#ABAF40
RGBrgb(171, 175, 64)
HSLhsl(62, 46%, 47%)
HSVhsv(62, 63%, 69%)
CMYKcmyk(2.3%, 0%, 63.4%, 31.4%)
CIE-LABlab(69.25, -15.84, 54.49)
CIE-LCHlch(69.25, 56.74, 106.21°)
OKLaboklab(72.94% -0.0481 0.1238)
OKLCHoklch(72.94% 0.133 111.2)
XYZxyz(33.0509, 39.6888, 10.7692)
Luminance0.3969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF40 #4440AF
analogous
#AF7C40 #ABAF40 #74AF40
triadic
#ABAF40 #40ABAF #AF40AB
tetradic
#ABAF40 #40AF7C #4440AF #AF4074
square
#ABAF40 #40AF7C #4440AF #AF4074
split-complementary
#ABAF40 #4074AF #7C40AF
monochromatic
#53551F #7F8230 #ABAF40 #C3C765 #D5D792

Accessibility & contrast

On white

2.35
#ABAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#ABAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF40
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF40#FFFFFF#000000##000000
##ABAF401.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA732
Deuteranopia (green-blind)
#BDAB47
Tritanopia (blue-blind)
#B6A598
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf40;
/* rgb */ color: rgb(171, 175, 64);
/* oklch */ color: oklch(72.9% 0.133 111.2);
Tailwind
colors: {
  custom: {
    50: '#c7c67a',
    500: '#abaf40',
    950: '#000000',
  },
}
SCSS
$custom: #abaf40;
$custom-light: #c7c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf40",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 62.162,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72943,
    "c": 0.13277,
    "h": 111.2
  },
  "luminance": 0.39688
}

Semantic roles & 50–950 ramp

primary
#ABAF40
secondary
#8A88C3
accent
#52D656
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #ABAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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