#AF46C2#AF46C2

#AF46C2 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.4% C 0.203 H 321.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF46C2
RGBrgb(175, 70, 194)
HSLhsl(291, 50%, 52%)
HSVhsv(291, 64%, 76%)
CMYKcmyk(9.8%, 63.9%, 0%, 23.9%)
CIE-LABlab(48.75, 59.85, -45.52)
CIE-LCHlch(48.75, 75.19, 322.74°)
OKLaboklab(58.39% 0.1579 -0.1269)
OKLCHoklch(58.39% 0.203 321.2)
XYZxyz(29.6059, 17.3908, 52.8258)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46C2 #59C246
analogous
#7146C2 #AF46C2 #C24697
triadic
#AF46C2 #C2AF46 #46C2AF
tetradic
#AF46C2 #C27146 #59C246 #4697C2
square
#AF46C2 #C27146 #59C246 #4697C2
split-complementary
#AF46C2 #97C246 #46C271
monochromatic
#60236A #893299 #AF46C2 #C374D1 #D7A2E0

Accessibility & contrast

On white

4.69
#AF46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF46C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46C2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46C2#FFFFFF#000000##FFFFFF
##AF46C21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#5378BF
Tritanopia (blue-blind)
#B15A7E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af46c2;
/* rgb */ color: rgb(175, 70, 194);
/* oklch */ color: oklch(58.4% 0.203 321.2);
Tailwind
colors: {
  custom: {
    50: '#ca81d5',
    500: '#af46c2',
    950: '#000000',
  },
}
SCSS
$custom: #af46c2;
$custom-light: #ca81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af46c2",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 290.806,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58393,
    "c": 0.20258,
    "h": 321.2
  },
  "luminance": 0.17389
}

Semantic roles & 50–950 ramp

primary
#AF46C2
secondary
#9FCD97
accent
#DA4E63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF46C2

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

Preview Lab → · Contrast checker → · Palette generator →

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