#AF4CDF#AF4CDF

#AF4CDF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.8% C 0.222 H 312.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDF
RGBrgb(175, 76, 223)
HSLhsl(280, 70%, 59%)
HSVhsv(280, 66%, 87%)
CMYKcmyk(21.5%, 65.9%, 0%, 12.5%)
CIE-LABlab(51.40, 62.97, -57.89)
CIE-LCHlch(51.40, 85.54, 317.41°)
OKLaboklab(60.85% 0.1503 -0.1631)
OKLCHoklch(60.85% 0.222 312.7)
XYZxyz(33.5806, 19.6115, 71.8142)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDF #7CDF4C
analogous
#654CDF #AF4CDF #DF4CC5
triadic
#AF4CDF #DFAF4C #4CDFAF
tetradic
#AF4CDF #DF654C #7CDF4C #4CC5DF
square
#AF4CDF #DF654C #7CDF4C #4CC5DF
split-complementary
#AF4CDF #C5DF4C #4CDF65
monochromatic
#6E1B96 #9424CA #AF4CDF #C680E8 #DDB4F2

Accessibility & contrast

On white

4.27
#AF4CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AF4CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDF#FFFFFF#000000##000000
##AF4CDF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#407DDC
Tritanopia (blue-blind)
#AA698F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cdf;
/* rgb */ color: rgb(175, 76, 223);
/* oklch */ color: oklch(60.8% 0.222 312.7);
Tailwind
colors: {
  custom: {
    50: '#cb85ea',
    500: '#af4cdf',
    950: '#000000',
  },
}
SCSS
$custom: #af4cdf;
$custom-light: #cb85ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cdf",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 223
  },
  "hsl": {
    "h": 280.408,
    "s": 69.668,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.22183,
    "h": 312.7
  },
  "luminance": 0.19611
}

Semantic roles & 50–950 ramp

primary
#AF4CDF
secondary
#B9E0A6
accent
#EC3B75
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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