#AF4ED0#AF4ED0

#AF4ED0 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.2% C 0.205 H 316.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF4ED0
RGBrgb(175, 78, 208)
HSLhsl(285, 58%, 56%)
HSVhsv(285, 63%, 82%)
CMYKcmyk(15.9%, 62.5%, 0%, 18.4%)
CIE-LABlab(50.83, 59.02, -50.27)
CIE-LCHlch(50.83, 77.53, 319.58°)
OKLaboklab(60.15% 0.1485 -0.1408)
OKLCHoklch(60.15% 0.205 316.5)
XYZxyz(31.7870, 19.1180, 61.6780)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ED0 #6FD04E
analogous
#6E4ED0 #AF4ED0 #D04EB0
triadic
#AF4ED0 #D0AF4E #4ED0AF
tetradic
#AF4ED0 #D06E4E #6FD04E #4EB0D0
square
#AF4ED0 #D06E4E #6FD04E #4EB0D0
split-complementary
#AF4ED0 #B0D04E #4ED06E
monochromatic
#692281 #912FB2 #AF4ED0 #C57EDD #DBAFEA

Accessibility & contrast

On white

4.35
#AF4ED0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF4ED0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ED0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ED0#FFFFFF#000000##000000
##AF4ED01.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2273D4
Deuteranopia (green-blind)
#507CCD
Tritanopia (blue-blind)
#AD6588
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4ed0;
/* rgb */ color: rgb(175, 78, 208);
/* oklch */ color: oklch(60.2% 0.205 316.5);
Tailwind
colors: {
  custom: {
    50: '#ca85df',
    500: '#af4ed0',
    950: '#000000',
  },
}
SCSS
$custom: #af4ed0;
$custom-light: #ca85df;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ed0",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 208
  },
  "hsl": {
    "h": 284.769,
    "s": 58.036,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6015,
    "c": 0.2047,
    "h": 316.5
  },
  "luminance": 0.19117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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