#AF479E#AF479E

#AF479E is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.6% C 0.170 H 334.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF479E
RGBrgb(175, 71, 158)
HSLhsl(310, 42%, 48%)
HSVhsv(310, 59%, 69%)
CMYKcmyk(0%, 59.4%, 9.7%, 31.4%)
CIE-LABlab(47.09, 53.05, -27.00)
CIE-LCHlch(47.09, 59.53, 333.03°)
OKLaboklab(56.6% 0.1536 -0.0735)
OKLCHoklch(56.6% 0.17 334.4)
XYZxyz(26.1041, 16.0910, 34.0721)
Luminance0.1609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF479E #47AF58
analogous
#8C47AF #AF479E #AF476A
triadic
#AF479E #9EAF47 #479EAF
tetradic
#AF479E #AF8C47 #47AF58 #476AAF
square
#AF479E #AF8C47 #47AF58 #476AAF
split-complementary
#AF479E #6AAF47 #47AF8C
monochromatic
#58244F #833577 #AF479E #C46FB6 #D69ACC

Accessibility & contrast

On white

4.98
#AF479E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF479E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF479E
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF479E#FFFFFF#000000##FFFFFF
##AF479E1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4666A1
Deuteranopia (green-blind)
#66759B
Tritanopia (blue-blind)
#B74E6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af479e;
/* rgb */ color: rgb(175, 71, 158);
/* oklch */ color: oklch(56.6% 0.170 334.4);
Tailwind
colors: {
  custom: {
    50: '#ca80bb',
    500: '#af479e',
    950: '#000000',
  },
}
SCSS
$custom: #af479e;
$custom-light: #ca80bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af479e",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 309.808,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.17027,
    "h": 334.4
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#AF479E
secondary
#8FC298
accent
#D26A56
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF479E

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

Preview Lab → · Contrast checker → · Palette generator →

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