#AF4CD5#AF4CD5

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

Color values

HEX#AF4CD5
RGBrgb(175, 76, 213)
HSLhsl(283, 62%, 57%)
HSVhsv(283, 64%, 84%)
CMYKcmyk(17.8%, 64.3%, 0%, 16.5%)
CIE-LABlab(50.79, 60.93, -53.18)
CIE-LCHlch(50.79, 80.87, 318.89°)
OKLaboklab(60.22% 0.1508 -0.1493)
OKLCHoklch(60.22% 0.212 315.3)
XYZxyz(32.2720, 19.0881, 64.9223)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD5 #72D54C
analogous
#6B4CD5 #AF4CD5 #D54CB6
triadic
#AF4CD5 #D5AF4C #4CD5AF
tetradic
#AF4CD5 #D56B4C #72D54C #4CB6D5
square
#AF4CD5 #D56B4C #72D54C #4CB6D5
split-complementary
#AF4CD5 #B6D54C #4CD56B
monochromatic
#6A2087 #912BB9 #AF4CD5 #C57EE1 #DBAFEC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4CD5#FFFFFF#000000##000000
##AF4CD51.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)
#1073D9
Deuteranopia (green-blind)
#4A7CD2
Tritanopia (blue-blind)
#AC668A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4cd5;
/* rgb */ color: rgb(175, 76, 213);
/* oklch */ color: oklch(60.2% 0.212 315.3);
Tailwind
colors: {
  custom: {
    50: '#ca84e2',
    500: '#af4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd5;
$custom-light: #ca84e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd5",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 283.358,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60218,
    "c": 0.21222,
    "h": 315.3
  },
  "luminance": 0.19087
}

Semantic roles & 50–950 ramp

primary
#AF4CD5
secondary
#B2DAA2
accent
#E54370
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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