#AF4EC9#AF4EC9

#AF4EC9 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.7% C 0.198 H 318.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF4EC9
RGBrgb(175, 78, 201)
HSLhsl(287, 53%, 55%)
HSVhsv(287, 61%, 79%)
CMYKcmyk(12.9%, 61.2%, 0%, 21.2%)
CIE-LABlab(50.43, 57.63, -46.88)
CIE-LCHlch(50.43, 74.29, 320.87°)
OKLaboklab(59.74% 0.1485 -0.1309)
OKLCHoklch(59.74% 0.198 318.6)
XYZxyz(30.9448, 18.7811, 57.2421)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EC9 #68C94E
analogous
#724EC9 #AF4EC9 #C94EA6
triadic
#AF4EC9 #C9AF4E #4EC9AF
tetradic
#AF4EC9 #C9724E #68C94E #4EA6C9
square
#AF4EC9 #C9724E #68C94E #4EA6C9
split-complementary
#AF4EC9 #A6C94E #4EC972
monochromatic
#662578 #8E33A7 #AF4EC9 #C47DD7 #D9ACE6

Accessibility & contrast

On white

4.42
#AF4EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF4EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EC9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EC9#FFFFFF#000000##000000
##AF4EC91.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D72CD
Deuteranopia (green-blind)
#557BC6
Tritanopia (blue-blind)
#AF6384
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ec9;
/* rgb */ color: rgb(175, 78, 201);
/* oklch */ color: oklch(59.7% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#ca85da',
    500: '#af4ec9',
    950: '#000000',
  },
}
SCSS
$custom: #af4ec9;
$custom-light: #ca85da;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ec9",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 287.317,
    "s": 53.247,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59736,
    "c": 0.19798,
    "h": 318.6
  },
  "luminance": 0.1878
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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