#AF4ECA#AF4ECA

#AF4ECA is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.8% C 0.199 H 318.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF4ECA
RGBrgb(175, 78, 202)
HSLhsl(287, 54%, 55%)
HSVhsv(287, 61%, 79%)
CMYKcmyk(13.4%, 61.4%, 0%, 20.8%)
CIE-LABlab(50.49, 57.83, -47.37)
CIE-LCHlch(50.49, 74.75, 320.68°)
OKLaboklab(59.79% 0.1485 -0.1324)
OKLCHoklch(59.79% 0.199 318.3)
XYZxyz(31.0628, 18.8283, 57.8636)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ECA #69CA4E
analogous
#714ECA #AF4ECA #CA4EA7
triadic
#AF4ECA #CAAF4E #4ECAAF
tetradic
#AF4ECA #CA714E #69CA4E #4EA7CA
square
#AF4ECA #CA714E #69CA4E #4EA7CA
split-complementary
#AF4ECA #A7CA4E #4ECA71
monochromatic
#672479 #8F32A8 #AF4ECA #C47DD8 #DAACE6

Accessibility & contrast

On white

4.41
#AF4ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AF4ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ECA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ECA#FFFFFF#000000##000000
##AF4ECA1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CE
Deuteranopia (green-blind)
#547BC7
Tritanopia (blue-blind)
#AF6385
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4eca;
/* rgb */ color: rgb(175, 78, 202);
/* oklch */ color: oklch(59.8% 0.199 318.3);
Tailwind
colors: {
  custom: {
    50: '#ca85db',
    500: '#af4eca',
    950: '#000000',
  },
}
SCSS
$custom: #af4eca;
$custom-light: #ca85db;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eca",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 286.935,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59794,
    "c": 0.19894,
    "h": 318.3
  },
  "luminance": 0.18827
}

Semantic roles & 50–950 ramp

primary
#AF4ECA
secondary
#ABD4A0
accent
#DD4B6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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