#AFA66C#AFA66C

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

Color values

HEX#AFA66C
RGBrgb(175, 166, 108)
HSLhsl(52, 30%, 55%)
HSVhsv(52, 38%, 69%)
CMYKcmyk(0%, 5.1%, 38.3%, 31.4%)
CIE-LABlab(67.63, -5.45, 31.21)
CIE-LCHlch(67.63, 31.69, 99.91°)
OKLaboklab(71.9% -0.0142 0.0767)
OKLCHoklch(71.9% 0.078 100.5)
XYZxyz(34.0228, 37.4700, 19.6247)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA66C #6C75AF
analogous
#AF846C #AFA66C #96AF6C
triadic
#AFA66C #6CAFA6 #A66CAF
tetradic
#AFA66C #6CAF84 #6C75AF #AF6C96
square
#AFA66C #6CAF84 #6C75AF #AF6C96
split-complementary
#AFA66C #6C96AF #846CAF
monochromatic
#686239 #90874E #AFA66C #C5BE94 #DAD6BB

Accessibility & contrast

On white

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

On black

8.49
#AFA66C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA66C
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA66C#FFFFFF#000000##000000
##AFA66C1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A368
Deuteranopia (green-blind)
#B3A66E
Tritanopia (blue-blind)
#B89E97
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa66c;
/* rgb */ color: rgb(175, 166, 108);
/* oklch */ color: oklch(71.9% 0.078 100.5);
Tailwind
colors: {
  custom: {
    50: '#c8c097',
    500: '#afa66c',
    950: '#000000',
  },
}
SCSS
$custom: #afa66c;
$custom-light: #c8c097;
$custom-dark: #000000;
JSON
{
  "hex": "#afa66c",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 108
  },
  "hsl": {
    "h": 51.94,
    "s": 29.515,
    "l": 55.49
  },
  "oklch": {
    "l": 0.71904,
    "c": 0.07803,
    "h": 100.5
  },
  "luminance": 0.37469
}

Semantic roles & 50–950 ramp

primary
#AFA66C
secondary
#ADB1C9
accent
#6FC662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA66C

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

Preview Lab → · Contrast checker → · Palette generator →

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