#AFA252#AFA252

#AFA252 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.103 H 100.2°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA252
RGBrgb(175, 162, 82)
HSLhsl(52, 37%, 50%)
HSVhsv(52, 53%, 69%)
CMYKcmyk(0%, 7.4%, 53.1%, 31.4%)
CIE-LABlab(66.19, -5.97, 42.83)
CIE-LCHlch(66.19, 43.25, 97.93°)
OKLaboklab(70.65% -0.0182 0.101)
OKLCHoklch(70.65% 0.103 100.2)
XYZxyz(32.1235, 35.5650, 13.1536)
Luminance0.3556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA252 #525FAF
analogous
#AF7352 #AFA252 #8DAF52
triadic
#AFA252 #52AFA2 #A252AF
tetradic
#AFA252 #52AF73 #525FAF #AF528D
square
#AFA252 #52AF73 #525FAF #AF528D
split-complementary
#AFA252 #528DAF #7352AF
monochromatic
#5C552B #867C3E #AFA252 #C2B87C #D6CFA6

Accessibility & contrast

On white

2.59
#AFA252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AFA252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA252
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA252#FFFFFF#000000##000000
##AFA2521.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4B
Deuteranopia (green-blind)
#B3A356
Tritanopia (blue-blind)
#BB9890
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa252;
/* rgb */ color: rgb(175, 162, 82);
/* oklch */ color: oklch(70.6% 0.103 100.2);
Tailwind
colors: {
  custom: {
    50: '#c9bd85',
    500: '#afa252',
    950: '#000000',
  },
}
SCSS
$custom: #afa252;
$custom-light: #c9bd85;
$custom-dark: #000000;
JSON
{
  "hex": "#afa252",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 51.613,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.70645,
    "c": 0.10259,
    "h": 100.2
  },
  "luminance": 0.35564
}

Semantic roles & 50–950 ramp

primary
#AFA252
secondary
#9A9FC3
accent
#6BCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA252

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

Preview Lab → · Contrast checker → · Palette generator →

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