#AFA952#AFA952

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

Color values

HEX#AFA952
RGBrgb(175, 169, 82)
HSLhsl(56, 37%, 50%)
HSVhsv(56, 53%, 69%)
CMYKcmyk(0%, 3.4%, 53.1%, 31.4%)
CIE-LABlab(68.09, -9.67, 45.07)
CIE-LCHlch(68.09, 46.10, 102.11°)
OKLaboklab(72.16% -0.0288 0.1058)
OKLCHoklch(72.16% 0.11 105.2)
XYZxyz(33.3911, 38.1001, 13.5761)
Luminance0.3810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA952 #5258AF
analogous
#AF7A52 #AFA952 #86AF52
triadic
#AFA952 #52AFA9 #A952AF
tetradic
#AFA952 #52AF7A #5258AF #AF5286
square
#AFA952 #52AF7A #5258AF #AF5286
split-complementary
#AFA952 #5286AF #7A52AF
monochromatic
#5C592B #86813E #AFA952 #C2BE7C #D6D3A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA952#FFFFFF#000000##000000
##AFA9521.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)
#B6A44A
Deuteranopia (green-blind)
#B8A856
Tritanopia (blue-blind)
#BA9F95
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa952;
/* rgb */ color: rgb(175, 169, 82);
/* oklch */ color: oklch(72.2% 0.110 105.2);
Tailwind
colors: {
  custom: {
    50: '#c9c285',
    500: '#afa952',
    950: '#000000',
  },
}
SCSS
$custom: #afa952;
$custom-light: #c9c285;
$custom-dark: #000000;
JSON
{
  "hex": "#afa952",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 82
  },
  "hsl": {
    "h": 56.129,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7216,
    "c": 0.10969,
    "h": 105.2
  },
  "luminance": 0.38099
}

Semantic roles & 50–950 ramp

primary
#AFA952
secondary
#9A9CC3
accent
#62CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA952

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

Preview Lab → · Contrast checker → · Palette generator →

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