#AF9E29#AF9E29

#AF9E29 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.4% C 0.132 H 100.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF9E29
RGBrgb(175, 158, 41)
HSLhsl(52, 62%, 42%)
HSVhsv(52, 77%, 69%)
CMYKcmyk(0%, 9.7%, 76.6%, 31.4%)
CIE-LABlab(64.75, -6.45, 59.06)
CIE-LCHlch(64.75, 59.41, 96.24°)
OKLaboklab(69.39% -0.0242 0.1293)
OKLCHoklch(69.39% 0.132 100.6)
XYZxyz(30.3078, 33.7292, 7.0114)
Luminance0.3373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E29 #293AAF
analogous
#AF5B29 #AF9E29 #7DAF29
triadic
#AF9E29 #29AF9E #9E29AF
tetradic
#AF9E29 #29AF5B #293AAF #AF297D
square
#AF9E29 #29AF5B #293AAF #AF297D
split-complementary
#AF9E29 #297DAF #5B29AF
monochromatic
#4C4412 #7D711D #AF9E29 #D3C042 #DED174

Accessibility & contrast

On white

2.71
#AF9E29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF9E29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E29
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E29#FFFFFF#000000##000000
##AF9E291.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9910
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e29;
/* rgb */ color: rgb(175, 158, 41);
/* oklch */ color: oklch(69.4% 0.132 100.6);
Tailwind
colors: {
  custom: {
    50: '#cbba6c',
    500: '#af9e29',
    950: '#000000',
  },
}
SCSS
$custom: #af9e29;
$custom-light: #cbba6c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e29",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 41
  },
  "hsl": {
    "h": 52.388,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.69391,
    "c": 0.13152,
    "h": 100.6
  },
  "luminance": 0.33728
}

Semantic roles & 50–950 ramp

primary
#AF9E29
secondary
#6E79C6
accent
#57E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9E29

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

Preview Lab → · Contrast checker → · Palette generator →

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