#AFA66E#AFA66E

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

Color values

HEX#AFA66E
RGBrgb(175, 166, 110)
HSLhsl(52, 29%, 56%)
HSVhsv(52, 37%, 69%)
CMYKcmyk(0%, 5.1%, 37.1%, 31.4%)
CIE-LABlab(67.66, -5.22, 30.19)
CIE-LCHlch(67.66, 30.64, 99.80°)
OKLaboklab(71.94% -0.0134 0.0744)
OKLCHoklch(71.94% 0.076 100.2)
XYZxyz(34.1304, 37.5131, 20.1917)
Luminance0.3751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA66E #6E77AF
analogous
#AF856E #AFA66E #97AF6E
triadic
#AFA66E #6EAFA6 #A66EAF
tetradic
#AFA66E #6EAF85 #6E77AF #AF6E97
square
#AFA66E #6EAF85 #6E77AF #AF6E97
split-complementary
#AFA66E #6E97AF #856EAF
monochromatic
#69623A #908750 #AFA66E #C5BE95 #DBD6BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA66E#FFFFFF#000000##000000
##AFA66E1.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)
#B0A36A
Deuteranopia (green-blind)
#B3A770
Tritanopia (blue-blind)
#B89F98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa66e;
/* rgb */ color: rgb(175, 166, 110);
/* oklch */ color: oklch(71.9% 0.076 100.2);
Tailwind
colors: {
  custom: {
    50: '#c8c098',
    500: '#afa66e',
    950: '#000000',
  },
}
SCSS
$custom: #afa66e;
$custom-light: #c8c098;
$custom-dark: #000000;
JSON
{
  "hex": "#afa66e",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 110
  },
  "hsl": {
    "h": 51.692,
    "s": 28.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.7194,
    "c": 0.07564,
    "h": 100.2
  },
  "luminance": 0.37512
}

Semantic roles & 50–950 ramp

primary
#AFA66E
secondary
#AFB3CA
accent
#70C563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA66E

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

Preview Lab → · Contrast checker → · Palette generator →

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