#AFA951#AFA951

#AFA951 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.111 H 105.3°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA951
RGBrgb(175, 169, 81)
HSLhsl(56, 37%, 50%)
HSVhsv(56, 54%, 69%)
CMYKcmyk(0%, 3.4%, 53.7%, 31.4%)
CIE-LABlab(68.08, -9.76, 45.55)
CIE-LCHlch(68.08, 46.58, 102.09°)
OKLaboklab(72.15% -0.0292 0.1068)
OKLCHoklch(72.15% 0.111 105.3)
XYZxyz(33.3533, 38.0850, 13.3772)
Luminance0.3808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA951 #5157AF
analogous
#AF7A51 #AFA951 #86AF51
triadic
#AFA951 #51AFA9 #A951AF
tetradic
#AFA951 #51AF7A #5157AF #AF5186
square
#AFA951 #51AF7A #5157AF #AF5186
split-complementary
#AFA951 #5186AF #7A51AF
monochromatic
#5C582A #85813D #AFA951 #C2BE7B #D6D2A5

Accessibility & contrast

On white

2.44
#AFA951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFA951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA951
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA951#FFFFFF#000000##000000
##AFA9511.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A449
Deuteranopia (green-blind)
#B8A855
Tritanopia (blue-blind)
#BA9F95
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa951;
/* rgb */ color: rgb(175, 169, 81);
/* oklch */ color: oklch(72.1% 0.111 105.3);
Tailwind
colors: {
  custom: {
    50: '#c9c284',
    500: '#afa951',
    950: '#000000',
  },
}
SCSS
$custom: #afa951;
$custom-light: #c9c284;
$custom-dark: #000000;
JSON
{
  "hex": "#afa951",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 81
  },
  "hsl": {
    "h": 56.17,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.72148,
    "c": 0.11067,
    "h": 105.3
  },
  "luminance": 0.38084
}

Semantic roles & 50–950 ramp

primary
#AFA951
secondary
#999CC3
accent
#62CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA951

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

Preview Lab → · Contrast checker → · Palette generator →

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