#AF46C1#AF46C1

#AF46C1 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.3% C 0.202 H 321.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF46C1
RGBrgb(175, 70, 193)
HSLhsl(291, 50%, 52%)
HSVhsv(291, 64%, 76%)
CMYKcmyk(9.3%, 63.7%, 0%, 24.3%)
CIE-LABlab(48.69, 59.66, -45.03)
CIE-LCHlch(48.69, 74.74, 322.96°)
OKLaboklab(58.34% 0.1579 -0.1255)
OKLCHoklch(58.34% 0.202 321.5)
XYZxyz(29.4939, 17.3460, 52.2363)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46C1 #58C146
analogous
#7246C1 #AF46C1 #C14695
triadic
#AF46C1 #C1AF46 #46C1AF
tetradic
#AF46C1 #C17246 #58C146 #4695C1
square
#AF46C1 #C17246 #58C146 #4695C1
split-complementary
#AF46C1 #95C146 #46C172
monochromatic
#5F2369 #883397 #AF46C1 #C374D0 #D7A2E0

Accessibility & contrast

On white

4.70
#AF46C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF46C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46C1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46C1#FFFFFF#000000##FFFFFF
##AF46C11.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276CC5
Deuteranopia (green-blind)
#5478BE
Tritanopia (blue-blind)
#B15A7D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af46c1;
/* rgb */ color: rgb(175, 70, 193);
/* oklch */ color: oklch(58.3% 0.202 321.5);
Tailwind
colors: {
  custom: {
    50: '#ca81d4',
    500: '#af46c1',
    950: '#000000',
  },
}
SCSS
$custom: #af46c1;
$custom-light: #ca81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af46c1",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 193
  },
  "hsl": {
    "h": 291.22,
    "s": 49.798,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58335,
    "c": 0.20168,
    "h": 321.5
  },
  "luminance": 0.17345
}

Semantic roles & 50–950 ramp

primary
#AF46C1
secondary
#9ECC96
accent
#D94E63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF46C1

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

Preview Lab → · Contrast checker → · Palette generator →

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