#AF8F29#AF8F29

#AF8F29 is a light, vivid yellow. Relative luminance 0.289; OKLCH L 66.2% C 0.121 H 90.6°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AF8F29
RGBrgb(175, 143, 41)
HSLhsl(46, 62%, 42%)
HSVhsv(46, 77%, 69%)
CMYKcmyk(0%, 18.3%, 76.6%, 31.4%)
CIE-LABlab(60.71, 1.66, 55.28)
CIE-LCHlch(60.71, 55.30, 88.28°)
OKLaboklab(66.2% -0.0012 0.1212)
OKLCHoklch(66.2% 0.121 90.6)
XYZxyz(27.9035, 28.9207, 6.2100)
Luminance0.2892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F29 #2949AF
analogous
#AF4C29 #AF8F29 #8CAF29
triadic
#AF8F29 #29AF8F #8F29AF
tetradic
#AF8F29 #29AF4C #2949AF #AF298C
square
#AF8F29 #29AF4C #2949AF #AF298C
split-complementary
#AF8F29 #298CAF #4C29AF
monochromatic
#4C3E12 #7D661D #AF8F29 #D3B042 #DEC574

Accessibility & contrast

On white

3.10
#AF8F29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#AF8F29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F29
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F29#FFFFFF#000000##000000
##AF8F291.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D17
Deuteranopia (green-blind)
#A7962F
Tritanopia (blue-blind)
#BE837B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f29;
/* rgb */ color: rgb(175, 143, 41);
/* oklch */ color: oklch(66.2% 0.121 90.6);
Tailwind
colors: {
  custom: {
    50: '#cbaf6b',
    500: '#af8f29',
    950: '#000000',
  },
}
SCSS
$custom: #af8f29;
$custom-light: #cbaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f29",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 41
  },
  "hsl": {
    "h": 45.672,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.66198,
    "c": 0.12122,
    "h": 90.6
  },
  "luminance": 0.28919
}

Semantic roles & 50–950 ramp

primary
#AF8F29
secondary
#6E83C6
accent
#69E543
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F29

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

Preview Lab → · Contrast checker → · Palette generator →

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