#AFAB24#AFAB24

#AFAB24 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.145 H 107.7°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFAB24
RGBrgb(175, 171, 36)
HSLhsl(58, 66%, 41%)
HSVhsv(58, 79%, 69%)
CMYKcmyk(0%, 2.3%, 79.4%, 31.4%)
CIE-LABlab(68.29, -13.46, 63.86)
CIE-LCHlch(68.29, 65.27, 101.91°)
OKLaboklab(72.2% -0.0443 0.1386)
OKLCHoklch(72.2% 0.146 107.7)
XYZxyz(32.5619, 38.3683, 7.3593)
Luminance0.3837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB24 #2428AF
analogous
#AF6624 #AFAB24 #6EAF24
triadic
#AFAB24 #24AFAB #AB24AF
tetradic
#AFAB24 #24AF66 #2428AF #AF246E
square
#AFAB24 #24AF66 #2428AF #AF246E
split-complementary
#AFAB24 #246EAF #6624AF
monochromatic
#49480F #7C791A #AFAB24 #D6D23A #E1DE6D

Accessibility & contrast

On white

2.42
#AFAB24 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFAB24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB24
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB24#FFFFFF#000000##000000
##AFAB241.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA930
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afab24;
/* rgb */ color: rgb(175, 171, 36);
/* oklch */ color: oklch(72.2% 0.145 107.7);
Tailwind
colors: {
  custom: {
    50: '#cbc36c',
    500: '#afab24',
    950: '#000000',
  },
}
SCSS
$custom: #afab24;
$custom-light: #cbc36c;
$custom-dark: #000000;
JSON
{
  "hex": "#afab24",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 36
  },
  "hsl": {
    "h": 58.273,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72204,
    "c": 0.1455,
    "h": 107.7
  },
  "luminance": 0.38367
}

Semantic roles & 50–950 ramp

primary
#AFAB24
secondary
#686AC7
accent
#44E93F
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAB24

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

Preview Lab → · Contrast checker → · Palette generator →

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