#AFA662#AFA662

#AFA662 is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.090 H 101.8°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA662
RGBrgb(175, 166, 98)
HSLhsl(53, 32%, 54%)
HSVhsv(53, 44%, 69%)
CMYKcmyk(0%, 5.1%, 44%, 31.4%)
CIE-LABlab(67.48, -6.56, 36.27)
CIE-LCHlch(67.48, 36.86, 100.25°)
OKLaboklab(71.74% -0.0183 0.0877)
OKLCHoklch(71.74% 0.09 101.8)
XYZxyz(33.5208, 37.2692, 16.9808)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA662 #626BAF
analogous
#AF7F62 #AFA662 #91AF62
triadic
#AFA662 #62AFA6 #A662AF
tetradic
#AFA662 #62AF7F #626BAF #AF6291
square
#AFA662 #62AF7F #626BAF #AF6291
split-complementary
#AFA662 #6291AF #7F62AF
monochromatic
#645E33 #8C8447 #AFA662 #C4BD8B #D8D4B3

Accessibility & contrast

On white

2.48
#AFA662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA662
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA662#FFFFFF#000000##000000
##AFA6621.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A25D
Deuteranopia (green-blind)
#B4A665
Tritanopia (blue-blind)
#B99D96
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa662;
/* rgb */ color: rgb(175, 166, 98);
/* oklch */ color: oklch(71.7% 0.090 101.8);
Tailwind
colors: {
  custom: {
    50: '#c8c090',
    500: '#afa662',
    950: '#000000',
  },
}
SCSS
$custom: #afa662;
$custom-light: #c8c090;
$custom-dark: #000000;
JSON
{
  "hex": "#afa662",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 98
  },
  "hsl": {
    "h": 52.987,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.71737,
    "c": 0.0896,
    "h": 101.8
  },
  "luminance": 0.37268
}

Semantic roles & 50–950 ramp

primary
#AFA662
secondary
#A6AAC7
accent
#6BC95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA662

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

Preview Lab → · Contrast checker → · Palette generator →

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