#AFA529#AFA529

#AFA529 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.9% C 0.137 H 104.6°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA529
RGBrgb(175, 165, 41)
HSLhsl(56, 62%, 42%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 5.7%, 76.6%, 31.4%)
CIE-LABlab(66.66, -10.15, 60.83)
CIE-LCHlch(66.66, 61.67, 99.48°)
OKLaboklab(70.91% -0.0347 0.133)
OKLCHoklch(70.91% 0.137 104.6)
XYZxyz(31.5359, 36.1856, 7.4208)
Luminance0.3618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA529 #2933AF
analogous
#AF6229 #AFA529 #76AF29
triadic
#AFA529 #29AFA5 #A529AF
tetradic
#AFA529 #29AF62 #2933AF #AF2976
square
#AFA529 #29AF62 #2933AF #AF2976
split-complementary
#AFA529 #2976AF #6229AF
monochromatic
#4C4712 #7D761D #AFA529 #D3C842 #DED674

Accessibility & contrast

On white

2.55
#AFA529 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#AFA529 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA529
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA529#FFFFFF#000000##000000
##AFA5291.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F0C
Deuteranopia (green-blind)
#B7A533
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa529;
/* rgb */ color: rgb(175, 165, 41);
/* oklch */ color: oklch(70.9% 0.137 104.6);
Tailwind
colors: {
  custom: {
    50: '#cbbf6d',
    500: '#afa529',
    950: '#000000',
  },
}
SCSS
$custom: #afa529;
$custom-light: #cbbf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa529",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 41
  },
  "hsl": {
    "h": 55.522,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.70913,
    "c": 0.13748,
    "h": 104.6
  },
  "luminance": 0.36184
}

Semantic roles & 50–950 ramp

primary
#AFA529
secondary
#6E75C6
accent
#4FE543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA529

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

Preview Lab → · Contrast checker → · Palette generator →

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