#AF4CD2#AF4CD2

#AF4CD2 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.0% C 0.209 H 316.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF4CD2
RGBrgb(175, 76, 210)
HSLhsl(284, 60%, 56%)
HSVhsv(284, 64%, 82%)
CMYKcmyk(16.7%, 63.8%, 0%, 17.6%)
CIE-LABlab(50.61, 60.33, -51.75)
CIE-LCHlch(50.61, 79.48, 319.38°)
OKLaboklab(60.03% 0.1509 -0.1451)
OKLCHoklch(60.03% 0.209 316.1)
XYZxyz(31.8947, 18.9372, 62.9354)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD2 #6FD24C
analogous
#6C4CD2 #AF4CD2 #D24CB2
triadic
#AF4CD2 #D2AF4C #4CD2AF
tetradic
#AF4CD2 #D26C4C #6FD24C #4CB2D2
square
#AF4CD2 #D26C4C #6FD24C #4CB2D2
split-complementary
#AF4CD2 #B2D24C #4CD26C
monochromatic
#692183 #912DB4 #AF4CD2 #C57DDE #DBAEEB

Accessibility & contrast

On white

4.39
#AF4CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AF4CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CD2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CD2#FFFFFF#000000##000000
##AF4CD21.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1873D6
Deuteranopia (green-blind)
#4C7BCF
Tritanopia (blue-blind)
#AD6588
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4cd2;
/* rgb */ color: rgb(175, 76, 210);
/* oklch */ color: oklch(60.0% 0.209 316.1);
Tailwind
colors: {
  custom: {
    50: '#ca84e0',
    500: '#af4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd2;
$custom-light: #ca84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd2",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 284.328,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60034,
    "c": 0.20935,
    "h": 316.1
  },
  "luminance": 0.18936
}

Semantic roles & 50–950 ramp

primary
#AF4CD2
secondary
#B0D9A1
accent
#E3456E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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