#AFA029#AFA029

#AFA029 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.8% C 0.133 H 101.8°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#AFA029
RGBrgb(175, 160, 41)
HSLhsl(53, 62%, 42%)
HSVhsv(53, 77%, 69%)
CMYKcmyk(0%, 8.6%, 76.6%, 31.4%)
CIE-LABlab(65.29, -7.52, 59.56)
CIE-LCHlch(65.29, 60.03, 97.19°)
OKLaboklab(69.82% -0.0272 0.1303)
OKLCHoklch(69.82% 0.133 101.8)
XYZxyz(30.6517, 34.4171, 7.1260)
Luminance0.3442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA029 #2938AF
analogous
#AF5D29 #AFA029 #7BAF29
triadic
#AFA029 #29AFA0 #A029AF
tetradic
#AFA029 #29AF5D #2938AF #AF297B
square
#AFA029 #29AF5D #2938AF #AF297B
split-complementary
#AFA029 #297BAF #5D29AF
monochromatic
#4C4512 #7D731D #AFA029 #D3C342 #DED374

Accessibility & contrast

On white

2.66
#AFA029 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#AFA029 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA029
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA029#FFFFFF#000000##000000
##AFA0291.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0F
Deuteranopia (green-blind)
#B4A132
Tritanopia (blue-blind)
#BD9489
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #afa029;
/* rgb */ color: rgb(175, 160, 41);
/* oklch */ color: oklch(69.8% 0.133 101.8);
Tailwind
colors: {
  custom: {
    50: '#cbbb6c',
    500: '#afa029',
    950: '#000000',
  },
}
SCSS
$custom: #afa029;
$custom-light: #cbbb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa029",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 41
  },
  "hsl": {
    "h": 53.284,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.69824,
    "c": 0.13316,
    "h": 101.8
  },
  "luminance": 0.34416
}

Semantic roles & 50–950 ramp

primary
#AFA029
secondary
#6E78C6
accent
#55E543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AFA029

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

Preview Lab → · Contrast checker → · Palette generator →

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