#AF4ECD#AF4ECD

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

Color values

HEX#AF4ECD
RGBrgb(175, 78, 205)
HSLhsl(286, 56%, 55%)
HSVhsv(286, 62%, 80%)
CMYKcmyk(14.6%, 62%, 0%, 19.6%)
CIE-LABlab(50.65, 58.42, -48.82)
CIE-LCHlch(50.65, 76.14, 320.12°)
OKLaboklab(59.97% 0.1485 -0.1366)
OKLCHoklch(59.97% 0.202 317.4)
XYZxyz(31.4215, 18.9718, 59.7525)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ECD #6CCD4E
analogous
#6F4ECD #AF4ECD #CD4EAB
triadic
#AF4ECD #CDAF4E #4ECDAF
tetradic
#AF4ECD #CD6F4E #6CCD4E #4EABCD
square
#AF4ECD #CD6F4E #6CCD4E #4EABCD
split-complementary
#AF4ECD #ABCD4E #4ECD6F
monochromatic
#68237D #9031AD #AF4ECD #C57EDA #DAADE8

Accessibility & contrast

On white

4.38
#AF4ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4ECD#FFFFFF#000000##000000
##AF4ECD1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2772D1
Deuteranopia (green-blind)
#527CCA
Tritanopia (blue-blind)
#AE6486
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4ecd;
/* rgb */ color: rgb(175, 78, 205);
/* oklch */ color: oklch(60.0% 0.202 317.4);
Tailwind
colors: {
  custom: {
    50: '#ca85dd',
    500: '#af4ecd',
    950: '#000000',
  },
}
SCSS
$custom: #af4ecd;
$custom-light: #ca85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ecd",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 285.827,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59971,
    "c": 0.20182,
    "h": 317.4
  },
  "luminance": 0.18971
}

Semantic roles & 50–950 ramp

primary
#AF4ECD
secondary
#ADD6A1
accent
#DF496C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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