#AFA652#AFA652

#AFA652 is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.5% C 0.107 H 103.2°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA652
RGBrgb(175, 166, 82)
HSLhsl(54, 37%, 50%)
HSVhsv(54, 53%, 69%)
CMYKcmyk(0%, 5.1%, 53.1%, 31.4%)
CIE-LABlab(67.27, -8.09, 44.11)
CIE-LCHlch(67.27, 44.85, 100.39°)
OKLaboklab(71.51% -0.0243 0.1038)
OKLCHoklch(71.51% 0.107 103.2)
XYZxyz(32.8394, 36.9967, 13.3922)
Luminance0.3700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA652 #525BAF
analogous
#AF7852 #AFA652 #89AF52
triadic
#AFA652 #52AFA6 #A652AF
tetradic
#AFA652 #52AF78 #525BAF #AF5289
square
#AFA652 #52AF78 #525BAF #AF5289
split-complementary
#AFA652 #5289AF #7852AF
monochromatic
#5C572B #867F3E #AFA652 #C2BC7C #D6D1A6

Accessibility & contrast

On white

2.50
#AFA652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#AFA652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA652
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA652#FFFFFF#000000##000000
##AFA6521.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A14A
Deuteranopia (green-blind)
#B6A656
Tritanopia (blue-blind)
#BA9C93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa652;
/* rgb */ color: rgb(175, 166, 82);
/* oklch */ color: oklch(71.5% 0.107 103.2);
Tailwind
colors: {
  custom: {
    50: '#c9c085',
    500: '#afa652',
    950: '#000000',
  },
}
SCSS
$custom: #afa652;
$custom-light: #c9c085;
$custom-dark: #000000;
JSON
{
  "hex": "#afa652",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 82
  },
  "hsl": {
    "h": 54.194,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71509,
    "c": 0.10656,
    "h": 103.2
  },
  "luminance": 0.36996
}

Semantic roles & 50–950 ramp

primary
#AFA652
secondary
#9A9EC3
accent
#66CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA652

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

Preview Lab → · Contrast checker → · Palette generator →

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