#AFA173#AFA173

#AFA173 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 71.0% C 0.065 H 93.2°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA173
RGBrgb(175, 161, 115)
HSLhsl(46, 27%, 57%)
HSVhsv(46, 34%, 69%)
CMYKcmyk(0%, 8%, 34.3%, 31.4%)
CIE-LABlab(66.40, -1.92, 25.84)
CIE-LCHlch(66.40, 25.91, 94.24°)
OKLaboklab(70.97% -0.0036 0.0644)
OKLCHoklch(70.97% 0.065 93.2)
XYZxyz(33.5191, 35.8425, 21.3689)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA173 #7381AF
analogous
#AF8373 #AFA173 #9FAF73
triadic
#AFA173 #73AFA1 #A173AF
tetradic
#AFA173 #73AF83 #7381AF #AF739F
square
#AFA173 #73AF83 #7381AF #AF739F
split-complementary
#AFA173 #739FAF #8373AF
monochromatic
#6B603D #928353 #AFA173 #C5BB9A #DCD5C1

Accessibility & contrast

On white

2.57
#AFA173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA173
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA173#FFFFFF#000000##000000
##AFA1731.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9F70
Deuteranopia (green-blind)
#AEA375
Tritanopia (blue-blind)
#B89A95
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa173;
/* rgb */ color: rgb(175, 161, 115);
/* oklch */ color: oklch(71.0% 0.065 93.2);
Tailwind
colors: {
  custom: {
    50: '#c8bc9b',
    500: '#afa173',
    950: '#000000',
  },
}
SCSS
$custom: #afa173;
$custom-light: #c8bc9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa173",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 115
  },
  "hsl": {
    "h": 46,
    "s": 27.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.70971,
    "c": 0.06454,
    "h": 93.2
  },
  "luminance": 0.35842
}

Semantic roles & 50–950 ramp

primary
#AFA173
secondary
#B3B8CB
accent
#7AC464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA173

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

Preview Lab → · Contrast checker → · Palette generator →

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