#AF9229#AF9229

#AF9229 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.8% C 0.123 H 92.7°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AF9229
RGBrgb(175, 146, 41)
HSLhsl(47, 62%, 42%)
HSVhsv(47, 77%, 69%)
CMYKcmyk(0%, 16.6%, 76.6%, 31.4%)
CIE-LABlab(61.51, 0.02, 56.03)
CIE-LCHlch(61.51, 56.03, 89.98°)
OKLaboklab(66.83% -0.0059 0.1228)
OKLCHoklch(66.83% 0.123 92.7)
XYZxyz(28.3599, 29.8335, 6.3621)
Luminance0.2983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9229 #2946AF
analogous
#AF4F29 #AF9229 #89AF29
triadic
#AF9229 #29AF92 #9229AF
tetradic
#AF9229 #29AF4F #2946AF #AF2989
square
#AF9229 #29AF4F #2946AF #AF2989
split-complementary
#AF9229 #2989AF #4F29AF
monochromatic
#4C3F12 #7D691D #AF9229 #D3B442 #DEC774

Accessibility & contrast

On white

3.01
#AF9229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AF9229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9229
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9229#FFFFFF#000000##000000
##AF92291.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29016
Deuteranopia (green-blind)
#AA982F
Tritanopia (blue-blind)
#BE867E
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9229;
/* rgb */ color: rgb(175, 146, 41);
/* oklch */ color: oklch(66.8% 0.123 92.7);
Tailwind
colors: {
  custom: {
    50: '#cbb16b',
    500: '#af9229',
    950: '#000000',
  },
}
SCSS
$custom: #af9229;
$custom-light: #cbb16b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9229",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 41
  },
  "hsl": {
    "h": 47.015,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.66828,
    "c": 0.12296,
    "h": 92.7
  },
  "luminance": 0.29832
}

Semantic roles & 50–950 ramp

primary
#AF9229
secondary
#6E81C6
accent
#66E543
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9229

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

Preview Lab → · Contrast checker → · Palette generator →

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