#AF8E29#AF8E29

#AF8E29 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 66.0% C 0.121 H 89.8°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF8E29
RGBrgb(175, 142, 41)
HSLhsl(45, 62%, 42%)
HSVhsv(45, 77%, 69%)
CMYKcmyk(0%, 18.9%, 76.6%, 31.4%)
CIE-LABlab(60.45, 2.21, 55.03)
CIE-LCHlch(60.45, 55.07, 87.70°)
OKLaboklab(65.99% 0.0004 0.1207)
OKLCHoklch(65.99% 0.121 89.8)
XYZxyz(27.7541, 28.6218, 6.1601)
Luminance0.2862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E29 #294AAF
analogous
#AF4B29 #AF8E29 #8DAF29
triadic
#AF8E29 #29AF8E #8E29AF
tetradic
#AF8E29 #29AF4B #294AAF #AF298D
square
#AF8E29 #29AF4B #294AAF #AF298D
split-complementary
#AF8E29 #298DAF #4B29AF
monochromatic
#4C3E12 #7D661D #AF8E29 #D3AF42 #DEC474

Accessibility & contrast

On white

3.12
#AF8E29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF8E29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8E29
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8E29#FFFFFF#000000##000000
##AF8E291.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C17
Deuteranopia (green-blind)
#A7962F
Tritanopia (blue-blind)
#BE827A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e29;
/* rgb */ color: rgb(175, 142, 41);
/* oklch */ color: oklch(66.0% 0.121 89.8);
Tailwind
colors: {
  custom: {
    50: '#cbae6a',
    500: '#af8e29',
    950: '#000000',
  },
}
SCSS
$custom: #af8e29;
$custom-light: #cbae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e29",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 41
  },
  "hsl": {
    "h": 45.224,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.65989,
    "c": 0.12067,
    "h": 89.8
  },
  "luminance": 0.2862
}

Semantic roles & 50–950 ramp

primary
#AF8E29
secondary
#6E84C6
accent
#6BE543
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8E29

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

Preview Lab → · Contrast checker → · Palette generator →

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