#AF4ED1#AF4ED1

#AF4ED1 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.2% C 0.206 H 316.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF4ED1
RGBrgb(175, 78, 209)
HSLhsl(284, 59%, 56%)
HSVhsv(284, 63%, 82%)
CMYKcmyk(16.3%, 62.7%, 0%, 18%)
CIE-LABlab(50.88, 59.22, -50.75)
CIE-LCHlch(50.88, 77.99, 319.41°)
OKLaboklab(60.21% 0.1485 -0.1422)
OKLCHoklch(60.21% 0.206 316.2)
XYZxyz(31.9105, 19.1674, 62.3280)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ED1 #70D14E
analogous
#6E4ED1 #AF4ED1 #D14EB2
triadic
#AF4ED1 #D1AF4E #4ED1AF
tetradic
#AF4ED1 #D16E4E #70D14E #4EB2D1
square
#AF4ED1 #D16E4E #70D14E #4EB2D1
split-complementary
#AF4ED1 #B2D14E #4ED16E
monochromatic
#6A2283 #912FB3 #AF4ED1 #C57FDE #DBAFEA

Accessibility & contrast

On white

4.34
#AF4ED1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AF4ED1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ED1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ED1#FFFFFF#000000##000000
##AF4ED11.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2173D5
Deuteranopia (green-blind)
#4F7CCE
Tritanopia (blue-blind)
#AD6589
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4ed1;
/* rgb */ color: rgb(175, 78, 209);
/* oklch */ color: oklch(60.2% 0.206 316.2);
Tailwind
colors: {
  custom: {
    50: '#ca85e0',
    500: '#af4ed1',
    950: '#000000',
  },
}
SCSS
$custom: #af4ed1;
$custom-light: #ca85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ed1",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 209
  },
  "hsl": {
    "h": 284.427,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6021,
    "c": 0.20565,
    "h": 316.2
  },
  "luminance": 0.19166
}

Semantic roles & 50–950 ramp

primary
#AF4ED1
secondary
#B0D8A2
accent
#E2466E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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