#AFA566#AFA566

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

Color values

HEX#AFA566
RGBrgb(175, 165, 102)
HSLhsl(52, 31%, 54%)
HSVhsv(52, 42%, 69%)
CMYKcmyk(0%, 5.7%, 41.7%, 31.4%)
CIE-LABlab(67.27, -5.60, 33.92)
CIE-LCHlch(67.27, 34.38, 99.37°)
OKLaboklab(71.59% -0.0151 0.0826)
OKLCHoklch(71.59% 0.084 100.4)
XYZxyz(33.5333, 36.9845, 17.9401)
Luminance0.3698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA566 #6670AF
analogous
#AF8166 #AFA566 #95AF66
triadic
#AFA566 #66AFA5 #A566AF
tetradic
#AFA566 #66AF81 #6670AF #AF6695
square
#AFA566 #66AF81 #6670AF #AF6695
split-complementary
#AFA566 #6695AF #8166AF
monochromatic
#665F35 #8E844A #AFA566 #C4BD8E #D9D4B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA566#FFFFFF#000000##000000
##AFA5661.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)
#B0A161
Deuteranopia (green-blind)
#B3A668
Tritanopia (blue-blind)
#B99D95
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa566;
/* rgb */ color: rgb(175, 165, 102);
/* oklch */ color: oklch(71.6% 0.084 100.4);
Tailwind
colors: {
  custom: {
    50: '#c8bf92',
    500: '#afa566',
    950: '#000000',
  },
}
SCSS
$custom: #afa566;
$custom-light: #c8bf92;
$custom-dark: #000000;
JSON
{
  "hex": "#afa566",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 102
  },
  "hsl": {
    "h": 51.781,
    "s": 31.33,
    "l": 54.314
  },
  "oklch": {
    "l": 0.71587,
    "c": 0.08399,
    "h": 100.4
  },
  "luminance": 0.36984
}

Semantic roles & 50–950 ramp

primary
#AFA566
secondary
#A9ADC8
accent
#6EC860
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA566

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

Preview Lab → · Contrast checker → · Palette generator →

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