#AF4ECC#AF4ECC

#AF4ECC is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 59.9% C 0.201 H 317.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF4ECC
RGBrgb(175, 78, 204)
HSLhsl(286, 55%, 55%)
HSVhsv(286, 62%, 80%)
CMYKcmyk(14.2%, 61.8%, 0%, 20%)
CIE-LABlab(50.60, 58.23, -48.34)
CIE-LCHlch(50.60, 75.68, 320.30°)
OKLaboklab(59.91% 0.1485 -0.1352)
OKLCHoklch(59.91% 0.201 317.7)
XYZxyz(31.3011, 18.9236, 59.1189)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ECC #6BCC4E
analogous
#704ECC #AF4ECC #CC4EAA
triadic
#AF4ECC #CCAF4E #4ECCAF
tetradic
#AF4ECC #CC704E #6BCC4E #4EAACC
square
#AF4ECC #CC704E #6BCC4E #4EAACC
split-complementary
#AF4ECC #AACC4E #4ECC70
monochromatic
#68247C #8F31AB #AF4ECC #C47EDA #DAADE7

Accessibility & contrast

On white

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

On black

4.78
#AF4ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ECC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ECC#FFFFFF#000000##000000
##AF4ECC1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2972D0
Deuteranopia (green-blind)
#527CC9
Tritanopia (blue-blind)
#AE6486
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ecc;
/* rgb */ color: rgb(175, 78, 204);
/* oklch */ color: oklch(59.9% 0.201 317.7);
Tailwind
colors: {
  custom: {
    50: '#ca85dc',
    500: '#af4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #af4ecc;
$custom-light: #ca85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ecc",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 286.19,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59912,
    "c": 0.20085,
    "h": 317.7
  },
  "luminance": 0.18922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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