#AFAB29#AFAB29

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

Color values

HEX#AFAB29
RGBrgb(175, 171, 41)
HSLhsl(58, 62%, 42%)
HSVhsv(58, 77%, 69%)
CMYKcmyk(0%, 2.3%, 76.6%, 31.4%)
CIE-LABlab(68.32, -13.28, 62.34)
CIE-LCHlch(68.32, 63.74, 102.02°)
OKLaboklab(72.23% -0.0434 0.1363)
OKLCHoklch(72.23% 0.143 107.7)
XYZxyz(32.6437, 38.4010, 7.7900)
Luminance0.3840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB29 #292DAF
analogous
#AF6829 #AFAB29 #70AF29
triadic
#AFAB29 #29AFAB #AB29AF
tetradic
#AFAB29 #29AF68 #292DAF #AF2970
square
#AFAB29 #29AF68 #292DAF #AF2970
split-complementary
#AFAB29 #2970AF #6829AF
monochromatic
#4C4A12 #7D7B1D #AFAB29 #D3CF42 #DEDB74

Accessibility & contrast

On white

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

On black

8.68
#AFAB29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB29
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB29#FFFFFF#000000##000000
##AFAB291.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA407
Deuteranopia (green-blind)
#BCA934
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab29;
/* rgb */ color: rgb(175, 171, 41);
/* oklch */ color: oklch(72.2% 0.143 107.7);
Tailwind
colors: {
  custom: {
    50: '#cbc36e',
    500: '#afab29',
    950: '#000000',
  },
}
SCSS
$custom: #afab29;
$custom-light: #cbc36e;
$custom-dark: #000000;
JSON
{
  "hex": "#afab29",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 41
  },
  "hsl": {
    "h": 58.209,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.7223,
    "c": 0.14301,
    "h": 107.7
  },
  "luminance": 0.384
}

Semantic roles & 50–950 ramp

primary
#AFAB29
secondary
#6E71C6
accent
#48E543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB29

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

Preview Lab → · Contrast checker → · Palette generator →

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