#AF46C5#AF46C5

#AF46C5 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.205 H 320.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF46C5
RGBrgb(175, 70, 197)
HSLhsl(290, 52%, 52%)
HSVhsv(290, 64%, 77%)
CMYKcmyk(11.2%, 64.5%, 0%, 22.7%)
CIE-LABlab(48.92, 60.41, -46.99)
CIE-LCHlch(48.92, 76.53, 322.13°)
OKLaboklab(58.57% 0.1579 -0.1312)
OKLCHoklch(58.57% 0.205 320.3)
XYZxyz(29.9462, 17.5269, 54.6181)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46C5 #5CC546
analogous
#6F46C5 #AF46C5 #C5469C
triadic
#AF46C5 #C5AF46 #46C5AF
tetradic
#AF46C5 #C56F46 #5CC546 #469CC5
square
#AF46C5 #C56F46 #5CC546 #469CC5
split-complementary
#AF46C5 #9CC546 #46C56F
monochromatic
#61236E #8A319D #AF46C5 #C375D4 #D7A3E2

Accessibility & contrast

On white

4.66
#AF46C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF46C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46C5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46C5#FFFFFF#000000##FFFFFF
##AF46C51.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216DC9
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#B05B80
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af46c5;
/* rgb */ color: rgb(175, 70, 197);
/* oklch */ color: oklch(58.6% 0.205 320.3);
Tailwind
colors: {
  custom: {
    50: '#ca81d7',
    500: '#af46c5',
    950: '#000000',
  },
}
SCSS
$custom: #af46c5;
$custom-light: #ca81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#af46c5",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 289.606,
    "s": 52.263,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58569,
    "c": 0.2053,
    "h": 320.3
  },
  "luminance": 0.17525
}

Semantic roles & 50–950 ramp

primary
#AF46C5
secondary
#A1CF98
accent
#DC4C65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF46C5

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

Preview Lab → · Contrast checker → · Palette generator →

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