#AFA66F#AFA66F

#AFA66F is a light, moderate yellow. Relative luminance 0.375; OKLCH L 72.0% C 0.074 H 100.1°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA66F
RGBrgb(175, 166, 111)
HSLhsl(52, 29%, 56%)
HSVhsv(52, 37%, 69%)
CMYKcmyk(0%, 5.1%, 36.6%, 31.4%)
CIE-LABlab(67.68, -5.10, 29.68)
CIE-LCHlch(67.68, 30.11, 99.74°)
OKLaboklab(71.96% -0.013 0.0733)
OKLCHoklch(71.96% 0.074 100.1)
XYZxyz(34.1852, 37.5350, 20.4800)
Luminance0.3753 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA66F #6F78AF
analogous
#AF866F #AFA66F #98AF6F
triadic
#AFA66F #6FAFA6 #A66FAF
tetradic
#AFA66F #6FAF86 #6F78AF #AF6F98
square
#AFA66F #6FAF86 #6F78AF #AF6F98
split-complementary
#AFA66F #6F98AF #866FAF
monochromatic
#69633A #918750 #AFA66F #C5BE96 #DBD7BE

Accessibility & contrast

On white

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

On black

8.51
#AFA66F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA66F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA66F#FFFFFF#000000##000000
##AFA66F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A36B
Deuteranopia (green-blind)
#B3A771
Tritanopia (blue-blind)
#B89F98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa66f;
/* rgb */ color: rgb(175, 166, 111);
/* oklch */ color: oklch(72.0% 0.074 100.1);
Tailwind
colors: {
  custom: {
    50: '#c8c099',
    500: '#afa66f',
    950: '#000000',
  },
}
SCSS
$custom: #afa66f;
$custom-light: #c8c099;
$custom-dark: #000000;
JSON
{
  "hex": "#afa66f",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 111
  },
  "hsl": {
    "h": 51.563,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.71958,
    "c": 0.07443,
    "h": 100.1
  },
  "luminance": 0.37534
}

Semantic roles & 50–950 ramp

primary
#AFA66F
secondary
#B0B3CA
accent
#71C563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA66F

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

Preview Lab → · Contrast checker → · Palette generator →

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