#AFA66D#AFA66D

#AFA66D is a light, moderate yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.077 H 100.4°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA66D
RGBrgb(175, 166, 109)
HSLhsl(52, 29%, 56%)
HSVhsv(52, 38%, 69%)
CMYKcmyk(0%, 5.1%, 37.7%, 31.4%)
CIE-LABlab(67.64, -5.33, 30.70)
CIE-LCHlch(67.64, 31.16, 99.85°)
OKLaboklab(71.92% -0.0138 0.0756)
OKLCHoklch(71.92% 0.077 100.4)
XYZxyz(34.0763, 37.4914, 19.9066)
Luminance0.3749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA66D #6D76AF
analogous
#AF856D #AFA66D #97AF6D
triadic
#AFA66D #6DAFA6 #A66DAF
tetradic
#AFA66D #6DAF85 #6D76AF #AF6D97
square
#AFA66D #6DAF85 #6D76AF #AF6D97
split-complementary
#AFA66D #6D97AF #856DAF
monochromatic
#686239 #90874F #AFA66D #C5BE95 #DAD6BC

Accessibility & contrast

On white

2.47
#AFA66D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#AFA66D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA66D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA66D#FFFFFF#000000##000000
##AFA66D1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A369
Deuteranopia (green-blind)
#B3A66F
Tritanopia (blue-blind)
#B89E98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa66d;
/* rgb */ color: rgb(175, 166, 109);
/* oklch */ color: oklch(71.9% 0.077 100.4);
Tailwind
colors: {
  custom: {
    50: '#c8c097',
    500: '#afa66d',
    950: '#000000',
  },
}
SCSS
$custom: #afa66d;
$custom-light: #c8c097;
$custom-dark: #000000;
JSON
{
  "hex": "#afa66d",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 109
  },
  "hsl": {
    "h": 51.818,
    "s": 29.204,
    "l": 55.686
  },
  "oklch": {
    "l": 0.71922,
    "c": 0.07683,
    "h": 100.4
  },
  "luminance": 0.37491
}

Semantic roles & 50–950 ramp

primary
#AFA66D
secondary
#AEB2CA
accent
#70C562
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA66D

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

Preview Lab → · Contrast checker → · Palette generator →

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