#AF4ED2#AF4ED2

#AF4ED2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.3% C 0.207 H 316.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF4ED2
RGBrgb(175, 78, 210)
HSLhsl(284, 59%, 56%)
HSVhsv(284, 63%, 82%)
CMYKcmyk(16.7%, 62.9%, 0%, 17.6%)
CIE-LABlab(50.94, 59.43, -51.23)
CIE-LCHlch(50.94, 78.46, 319.24°)
OKLaboklab(60.27% 0.1485 -0.1436)
OKLCHoklch(60.27% 0.207 316)
XYZxyz(32.0347, 19.2170, 62.9821)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ED2 #71D24E
analogous
#6D4ED2 #AF4ED2 #D24EB3
triadic
#AF4ED2 #D2AF4E #4ED2AF
tetradic
#AF4ED2 #D26D4E #71D24E #4EB3D2
square
#AF4ED2 #D26D4E #71D24E #4EB3D2
split-complementary
#AF4ED2 #B3D24E #4ED26D
monochromatic
#6A2284 #912EB5 #AF4ED2 #C57FDE #DBB0EB

Accessibility & contrast

On white

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

On black

4.84
#AF4ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ED2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ED2#FFFFFF#000000##000000
##AF4ED21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F73D6
Deuteranopia (green-blind)
#4E7CCF
Tritanopia (blue-blind)
#AD6689
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4ed2;
/* rgb */ color: rgb(175, 78, 210);
/* oklch */ color: oklch(60.3% 0.207 316.0);
Tailwind
colors: {
  custom: {
    50: '#ca85e0',
    500: '#af4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ed2;
$custom-light: #ca85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ed2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 284.091,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.20662,
    "h": 316
  },
  "luminance": 0.19216
}

Semantic roles & 50–950 ramp

primary
#AF4ED2
secondary
#B1D9A3
accent
#E3456F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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