#AF9C29#AF9C29

#AF9C29 is a light, vivid yellow. Relative luminance 0.331; OKLCH L 69.0% C 0.130 H 99.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF9C29
RGBrgb(175, 156, 41)
HSLhsl(51, 62%, 42%)
HSVhsv(51, 77%, 69%)
CMYKcmyk(0%, 10.9%, 76.6%, 31.4%)
CIE-LABlab(64.20, -5.39, 58.55)
CIE-LCHlch(64.20, 58.80, 95.26°)
OKLaboklab(68.96% -0.0212 0.1282)
OKLCHoklch(68.96% 0.13 99.4)
XYZxyz(29.9694, 33.0525, 6.8986)
Luminance0.3305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C29 #293CAF
analogous
#AF5929 #AF9C29 #7FAF29
triadic
#AF9C29 #29AF9C #9C29AF
tetradic
#AF9C29 #29AF59 #293CAF #AF297F
square
#AF9C29 #29AF59 #293CAF #AF297F
split-complementary
#AF9C29 #297FAF #5929AF
monochromatic
#4C4412 #7D701D #AF9C29 #D3BE42 #DECF74

Accessibility & contrast

On white

2.76
#AF9C29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AF9C29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C29
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C29#FFFFFF#000000##000000
##AF9C291.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9811
Deuteranopia (green-blind)
#B19F31
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c29;
/* rgb */ color: rgb(175, 156, 41);
/* oklch */ color: oklch(69.0% 0.130 99.4);
Tailwind
colors: {
  custom: {
    50: '#cbb86c',
    500: '#af9c29',
    950: '#000000',
  },
}
SCSS
$custom: #af9c29;
$custom-light: #cbb86c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c29",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 41
  },
  "hsl": {
    "h": 51.493,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.68959,
    "c": 0.12994,
    "h": 99.4
  },
  "luminance": 0.33051
}

Semantic roles & 50–950 ramp

primary
#AF9C29
secondary
#6E7AC6
accent
#5AE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9C29

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

Preview Lab → · Contrast checker → · Palette generator →

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