#AFA950#AFA950

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

Color values

HEX#AFA950
RGBrgb(175, 169, 80)
HSLhsl(56, 37%, 50%)
HSVhsv(56, 54%, 69%)
CMYKcmyk(0%, 3.4%, 54.3%, 31.4%)
CIE-LABlab(68.07, -9.84, 46.01)
CIE-LCHlch(68.07, 47.05, 102.07°)
OKLaboklab(72.14% -0.0295 0.1077)
OKLCHoklch(72.14% 0.112 105.3)
XYZxyz(33.3161, 38.0701, 13.1812)
Luminance0.3807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA950 #5056AF
analogous
#AF7A50 #AFA950 #85AF50
triadic
#AFA950 #50AFA9 #A950AF
tetradic
#AFA950 #50AF7A #5056AF #AF5085
square
#AFA950 #50AF7A #5056AF #AF5085
split-complementary
#AFA950 #5085AF #7A50AF
monochromatic
#5B582A #85803D #AFA950 #C2BE7A #D5D2A4

Accessibility & contrast

On white

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

On black

8.61
#AFA950 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA950
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA950#FFFFFF#000000##000000
##AFA9501.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa950;
/* rgb */ color: rgb(175, 169, 80);
/* oklch */ color: oklch(72.1% 0.112 105.3);
Tailwind
colors: {
  custom: {
    50: '#c9c284',
    500: '#afa950',
    950: '#000000',
  },
}
SCSS
$custom: #afa950;
$custom-light: #c9c284;
$custom-dark: #000000;
JSON
{
  "hex": "#afa950",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 80
  },
  "hsl": {
    "h": 56.211,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.72136,
    "c": 0.11164,
    "h": 105.3
  },
  "luminance": 0.38069
}

Semantic roles & 50–950 ramp

primary
#AFA950
secondary
#989BC3
accent
#62CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA950

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

Preview Lab → · Contrast checker → · Palette generator →

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