#AFA666#AFA666

#AFA666 is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.8% C 0.085 H 101.3°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA666
RGBrgb(175, 166, 102)
HSLhsl(53, 31%, 54%)
HSVhsv(53, 42%, 69%)
CMYKcmyk(0%, 5.1%, 41.7%, 31.4%)
CIE-LABlab(67.54, -6.13, 34.26)
CIE-LCHlch(67.54, 34.81, 100.15°)
OKLaboklab(71.8% -0.0167 0.0834)
OKLCHoklch(71.8% 0.085 101.3)
XYZxyz(33.7144, 37.3467, 18.0005)
Luminance0.3735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA666 #666FAF
analogous
#AF8266 #AFA666 #94AF66
triadic
#AFA666 #66AFA6 #A666AF
tetradic
#AFA666 #66AF82 #666FAF #AF6694
square
#AFA666 #66AF82 #666FAF #AF6694
split-complementary
#AFA666 #6694AF #8266AF
monochromatic
#666035 #8E854A #AFA666 #C4BD8E #D9D5B6

Accessibility & contrast

On white

2.48
#AFA666 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#AFA666 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA666
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA666#FFFFFF#000000##000000
##AFA6661.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A261
Deuteranopia (green-blind)
#B4A669
Tritanopia (blue-blind)
#B99E96
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa666;
/* rgb */ color: rgb(175, 166, 102);
/* oklch */ color: oklch(71.8% 0.085 101.3);
Tailwind
colors: {
  custom: {
    50: '#c8c092',
    500: '#afa666',
    950: '#000000',
  },
}
SCSS
$custom: #afa666;
$custom-light: #c8c092;
$custom-dark: #000000;
JSON
{
  "hex": "#afa666",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 102
  },
  "hsl": {
    "h": 52.603,
    "s": 31.33,
    "l": 54.314
  },
  "oklch": {
    "l": 0.71801,
    "c": 0.08505,
    "h": 101.3
  },
  "luminance": 0.37346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA666

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

Preview Lab → · Contrast checker → · Palette generator →

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