#AFAF29#AFAF29

#AFAF29 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.147 H 109.5°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFAF29
RGBrgb(175, 175, 41)
HSLhsl(60, 62%, 42%)
HSVhsv(60, 77%, 69%)
CMYKcmyk(0%, 0%, 76.6%, 31.4%)
CIE-LABlab(69.42, -15.33, 63.36)
CIE-LCHlch(69.42, 65.18, 103.60°)
OKLaboklab(73.11% -0.0491 0.1384)
OKLCHoklch(73.11% 0.147 109.5)
XYZxyz(33.4107, 39.9350, 8.0457)
Luminance0.3993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF29 #2929AF
analogous
#AF6C29 #AFAF29 #6CAF29
triadic
#AFAF29 #29AFAF #AF29AF
tetradic
#AFAF29 #29AF6C #2929AF #AF296C
square
#AFAF29 #29AF6C #2929AF #AF296C
split-complementary
#AFAF29 #296CAF #6C29AF
monochromatic
#4C4C12 #7D7D1D #AFAF29 #D3D342 #DEDE74

Accessibility & contrast

On white

2.34
#AFAF29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFAF29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF29
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF29#FFFFFF#000000##000000
##AFAF291.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA703
Deuteranopia (green-blind)
#BFAB34
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf29;
/* rgb */ color: rgb(175, 175, 41);
/* oklch */ color: oklch(73.1% 0.147 109.5);
Tailwind
colors: {
  custom: {
    50: '#cbc66e',
    500: '#afaf29',
    950: '#000000',
  },
}
SCSS
$custom: #afaf29;
$custom-light: #cbc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf29",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 41
  },
  "hsl": {
    "h": 60,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.73115,
    "c": 0.14689,
    "h": 109.5
  },
  "luminance": 0.39934
}

Semantic roles & 50–950 ramp

primary
#AFAF29
secondary
#6E6EC6
accent
#43E543
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF29

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

Preview Lab → · Contrast checker → · Palette generator →

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