#AF46A2#AF46A2

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

Color values

HEX#AF46A2
RGBrgb(175, 70, 162)
HSLhsl(307, 43%, 48%)
HSVhsv(307, 60%, 69%)
CMYKcmyk(0%, 60%, 7.4%, 31.4%)
CIE-LABlab(47.11, 54.16, -29.35)
CIE-LCHlch(47.11, 61.60, 331.55°)
OKLaboklab(56.67% 0.1555 -0.0802)
OKLCHoklch(56.67% 0.175 332.7)
XYZxyz(26.3910, 16.1048, 35.8940)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46A2 #46AF53
analogous
#8846AF #AF46A2 #AF466D
triadic
#AF46A2 #A2AF46 #46A2AF
tetradic
#AF46A2 #AF8846 #46AF53 #466DAF
square
#AF46A2 #AF8846 #46AF53 #466DAF
split-complementary
#AF46A2 #6DAF46 #46AF88
monochromatic
#582351 #83357A #AF46A2 #C56DBA #D699CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF46A2#FFFFFF#000000##FFFFFF
##AF46A21.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)
#4366A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#B64E6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af46a2;
/* rgb */ color: rgb(175, 70, 162);
/* oklch */ color: oklch(56.7% 0.175 332.7);
Tailwind
colors: {
  custom: {
    50: '#ca80be',
    500: '#af46a2',
    950: '#000000',
  },
}
SCSS
$custom: #af46a2;
$custom-light: #ca80be;
$custom-dark: #000000;
JSON
{
  "hex": "#af46a2",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 162
  },
  "hsl": {
    "h": 307.429,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56671,
    "c": 0.17497,
    "h": 332.7
  },
  "luminance": 0.16103
}

Semantic roles & 50–950 ramp

primary
#AF46A2
secondary
#8EC295
accent
#D36555
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF46A2

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

Preview Lab → · Contrast checker → · Palette generator →

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