#AF4DD2#AF4DD2

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

Color values

HEX#AF4DD2
RGBrgb(175, 77, 210)
HSLhsl(284, 60%, 56%)
HSVhsv(284, 63%, 82%)
CMYKcmyk(16.7%, 63.3%, 0%, 17.6%)
CIE-LABlab(50.78, 59.88, -51.49)
CIE-LCHlch(50.78, 78.97, 319.31°)
OKLaboklab(60.15% 0.1497 -0.1444)
OKLCHoklch(60.15% 0.208 316)
XYZxyz(31.9641, 19.0760, 62.9586)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DD2 #70D24D
analogous
#6D4DD2 #AF4DD2 #D24DB2
triadic
#AF4DD2 #D2AF4D #4DD2AF
tetradic
#AF4DD2 #D26D4D #70D24D #4DB2D2
square
#AF4DD2 #D26D4D #70D24D #4DB2D2
split-complementary
#AF4DD2 #B2D24D #4DD26D
monochromatic
#6A2183 #912EB4 #AF4DD2 #C57EDE #DBAFEB

Accessibility & contrast

On white

4.36
#AF4DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4DD2#FFFFFF#000000##000000
##AF4DD21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C73D6
Deuteranopia (green-blind)
#4D7CCF
Tritanopia (blue-blind)
#AD6589
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4dd2;
/* rgb */ color: rgb(175, 77, 210);
/* oklch */ color: oklch(60.2% 0.208 316.0);
Tailwind
colors: {
  custom: {
    50: '#ca85e0',
    500: '#af4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #af4dd2;
$custom-light: #ca85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dd2",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 284.211,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60152,
    "c": 0.20799,
    "h": 316
  },
  "luminance": 0.19075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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