#AFA052#AFA052

#AFA052 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.101 H 98.6°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#AFA052
RGBrgb(175, 160, 82)
HSLhsl(50, 37%, 50%)
HSVhsv(50, 53%, 69%)
CMYKcmyk(0%, 8.6%, 53.1%, 31.4%)
CIE-LABlab(65.64, -4.90, 42.19)
CIE-LCHlch(65.64, 42.47, 96.62°)
OKLaboklab(70.22% -0.0151 0.0996)
OKLCHoklch(70.22% 0.101 98.6)
XYZxyz(31.7740, 34.8660, 13.0371)
Luminance0.3487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA052 #5261AF
analogous
#AF7252 #AFA052 #8FAF52
triadic
#AFA052 #52AFA0 #A052AF
tetradic
#AFA052 #52AF72 #5261AF #AF528F
square
#AFA052 #52AF72 #5261AF #AF528F
split-complementary
#AFA052 #528FAF #7252AF
monochromatic
#5C542B #867A3E #AFA052 #C2B77C #D6CEA6

Accessibility & contrast

On white

2.63
#AFA052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#AFA052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA052
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA052#FFFFFF#000000##000000
##AFA0521.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4B
Deuteranopia (green-blind)
#B1A255
Tritanopia (blue-blind)
#BB968E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa052;
/* rgb */ color: rgb(175, 160, 82);
/* oklch */ color: oklch(70.2% 0.101 98.6);
Tailwind
colors: {
  custom: {
    50: '#c9bb85',
    500: '#afa052',
    950: '#000000',
  },
}
SCSS
$custom: #afa052;
$custom-light: #c9bb85;
$custom-dark: #000000;
JSON
{
  "hex": "#afa052",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 82
  },
  "hsl": {
    "h": 50.323,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.70216,
    "c": 0.1007,
    "h": 98.6
  },
  "luminance": 0.34865
}

Semantic roles & 50–950 ramp

primary
#AFA052
secondary
#9AA0C3
accent
#6DCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA052

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

Preview Lab → · Contrast checker → · Palette generator →

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