#AFA645#AFA645

#AFA645 is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.119 H 104.0°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA645
RGBrgb(175, 166, 69)
HSLhsl(55, 43%, 48%)
HSVhsv(55, 61%, 69%)
CMYKcmyk(0%, 5.1%, 60.6%, 31.4%)
CIE-LABlab(67.14, -9.12, 50.11)
CIE-LCHlch(67.14, 50.94, 100.31°)
OKLaboklab(71.36% -0.0287 0.1151)
OKLCHoklch(71.36% 0.119 104)
XYZxyz(32.3907, 36.8172, 11.0293)
Luminance0.3682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA645 #454EAF
analogous
#AF7145 #AFA645 #83AF45
triadic
#AFA645 #45AFA6 #A645AF
tetradic
#AFA645 #45AF71 #454EAF #AF4583
square
#AFA645 #45AF71 #454EAF #AF4583
split-complementary
#AFA645 #4583AF #7145AF
monochromatic
#575322 #837C34 #AFA645 #C5BE6C #D6D198

Accessibility & contrast

On white

2.51
#AFA645 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#AFA645 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA645
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA645#FFFFFF#000000##000000
##AFA6451.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A13A
Deuteranopia (green-blind)
#B7A64A
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa645;
/* rgb */ color: rgb(175, 166, 69);
/* oklch */ color: oklch(71.4% 0.119 104.0);
Tailwind
colors: {
  custom: {
    50: '#c9c07d',
    500: '#afa645',
    950: '#000000',
  },
}
SCSS
$custom: #afa645;
$custom-light: #c9c07d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa645",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 69
  },
  "hsl": {
    "h": 54.906,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.71358,
    "c": 0.11863,
    "h": 104
  },
  "luminance": 0.36816
}

Semantic roles & 50–950 ramp

primary
#AFA645
secondary
#8D92C2
accent
#5FD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA645

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

Preview Lab → · Contrast checker → · Palette generator →

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