#AFAE29#AFAE29

#AFAE29 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.9% C 0.146 H 109.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#AFAE29
RGBrgb(175, 174, 41)
HSLhsl(60, 62%, 42%)
HSVhsv(60, 77%, 69%)
CMYKcmyk(0%, 0.6%, 76.6%, 31.4%)
CIE-LABlab(69.15, -14.82, 63.10)
CIE-LCHlch(69.15, 64.82, 103.22°)
OKLaboklab(72.89% -0.0477 0.1379)
OKLCHoklch(72.89% 0.146 109.1)
XYZxyz(33.2168, 39.5472, 7.9810)
Luminance0.3955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE29 #292AAF
analogous
#AF6B29 #AFAE29 #6DAF29
triadic
#AFAE29 #29AFAE #AE29AF
tetradic
#AFAE29 #29AF6B #292AAF #AF296D
square
#AFAE29 #29AF6B #292AAF #AF296D
split-complementary
#AFAE29 #296DAF #6B29AF
monochromatic
#4C4B12 #7D7D1D #AFAE29 #D3D242 #DEDE74

Accessibility & contrast

On white

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

On black

8.91
#AFAE29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE29
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE29#FFFFFF#000000##000000
##AFAE291.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA704
Deuteranopia (green-blind)
#BEAB34
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae29;
/* rgb */ color: rgb(175, 174, 41);
/* oklch */ color: oklch(72.9% 0.146 109.1);
Tailwind
colors: {
  custom: {
    50: '#cbc56e',
    500: '#afae29',
    950: '#000000',
  },
}
SCSS
$custom: #afae29;
$custom-light: #cbc56e;
$custom-dark: #000000;
JSON
{
  "hex": "#afae29",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 41
  },
  "hsl": {
    "h": 59.552,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72894,
    "c": 0.14591,
    "h": 109.1
  },
  "luminance": 0.39546
}

Semantic roles & 50–950 ramp

primary
#AFAE29
secondary
#6E6FC6
accent
#44E543
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE29

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

Preview Lab → · Contrast checker → · Palette generator →

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