#AFA66B#AFA66B

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

Color values

HEX#AFA66B
RGBrgb(175, 166, 107)
HSLhsl(52, 30%, 55%)
HSVhsv(52, 39%, 69%)
CMYKcmyk(0%, 5.1%, 38.9%, 31.4%)
CIE-LABlab(67.61, -5.57, 31.72)
CIE-LCHlch(67.61, 32.21, 99.95°)
OKLaboklab(71.89% -0.0146 0.0779)
OKLCHoklch(71.89% 0.079 100.7)
XYZxyz(33.9698, 37.4489, 19.3460)
Luminance0.3745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA66B #6B74AF
analogous
#AF846B #AFA66B #96AF6B
triadic
#AFA66B #6BAFA6 #A66BAF
tetradic
#AFA66B #6BAF84 #6B74AF #AF6B96
square
#AFA66B #6BAF84 #6B74AF #AF6B96
split-complementary
#AFA66B #6B96AF #846BAF
monochromatic
#686138 #8F874D #AFA66B #C4BE93 #DAD6BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA66B#FFFFFF#000000##000000
##AFA66B1.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)
#B0A267
Deuteranopia (green-blind)
#B3A66D
Tritanopia (blue-blind)
#B99E97
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa66b;
/* rgb */ color: rgb(175, 166, 107);
/* oklch */ color: oklch(71.9% 0.079 100.7);
Tailwind
colors: {
  custom: {
    50: '#c8c096',
    500: '#afa66b',
    950: '#000000',
  },
}
SCSS
$custom: #afa66b;
$custom-light: #c8c096;
$custom-dark: #000000;
JSON
{
  "hex": "#afa66b",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 107
  },
  "hsl": {
    "h": 52.059,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.71886,
    "c": 0.07921,
    "h": 100.7
  },
  "luminance": 0.37448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA66B

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

Preview Lab → · Contrast checker → · Palette generator →

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