#AFA646#AFA646

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

Color values

HEX#AFA646
RGBrgb(175, 166, 70)
HSLhsl(55, 43%, 48%)
HSVhsv(55, 60%, 69%)
CMYKcmyk(0%, 5.1%, 60%, 31.4%)
CIE-LABlab(67.15, -9.04, 49.67)
CIE-LCHlch(67.15, 50.48, 100.32°)
OKLaboklab(71.37% -0.0284 0.1143)
OKLCHoklch(71.37% 0.118 104)
XYZxyz(32.4220, 36.8297, 11.1942)
Luminance0.3683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA646 #464FAF
analogous
#AF7146 #AFA646 #83AF46
triadic
#AFA646 #46AFA6 #A646AF
tetradic
#AFA646 #46AF71 #464FAF #AF4683
square
#AFA646 #46AF71 #464FAF #AF4683
split-complementary
#AFA646 #4683AF #7146AF
monochromatic
#585323 #837D35 #AFA646 #C5BD6D #D6D199

Accessibility & contrast

On white

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

On black

8.37
#AFA646 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA646
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA646#FFFFFF#000000##000000
##AFA6461.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa646;
/* rgb */ color: rgb(175, 166, 70);
/* oklch */ color: oklch(71.4% 0.118 104.0);
Tailwind
colors: {
  custom: {
    50: '#c9c07d',
    500: '#afa646',
    950: '#000000',
  },
}
SCSS
$custom: #afa646;
$custom-light: #c9c07d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa646",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 70
  },
  "hsl": {
    "h": 54.857,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71369,
    "c": 0.11776,
    "h": 104
  },
  "luminance": 0.36829
}

Semantic roles & 50–950 ramp

primary
#AFA646
secondary
#8E93C2
accent
#60D355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA646

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

Preview Lab → · Contrast checker → · Palette generator →

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