#AF4EC8#AF4EC8

#AF4EC8 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.7% C 0.197 H 318.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF4EC8
RGBrgb(175, 78, 200)
HSLhsl(288, 53%, 55%)
HSVhsv(288, 61%, 78%)
CMYKcmyk(12.5%, 61%, 0%, 21.6%)
CIE-LABlab(50.37, 57.44, -46.39)
CIE-LCHlch(50.37, 73.83, 321.07°)
OKLaboklab(59.68% 0.1485 -0.1295)
OKLCHoklch(59.68% 0.197 318.9)
XYZxyz(30.8275, 18.7342, 56.6246)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EC8 #67C84E
analogous
#724EC8 #AF4EC8 #C84EA4
triadic
#AF4EC8 #C8AF4E #4EC8AF
tetradic
#AF4EC8 #C8724E #67C84E #4EA4C8
square
#AF4EC8 #C8724E #67C84E #4EA4C8
split-complementary
#AF4EC8 #A4C84E #4EC872
monochromatic
#662577 #8E33A5 #AF4EC8 #C47DD7 #D9ABE5

Accessibility & contrast

On white

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

On black

4.75
#AF4EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EC8
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EC8#FFFFFF#000000##000000
##AF4EC81.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E71CC
Deuteranopia (green-blind)
#557BC5
Tritanopia (blue-blind)
#AF6284
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ec8;
/* rgb */ color: rgb(175, 78, 200);
/* oklch */ color: oklch(59.7% 0.197 318.9);
Tailwind
colors: {
  custom: {
    50: '#ca85d9',
    500: '#af4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #af4ec8;
$custom-light: #ca85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ec8",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 287.705,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59678,
    "c": 0.19703,
    "h": 318.9
  },
  "luminance": 0.18733
}

Semantic roles & 50–950 ramp

primary
#AF4EC8
secondary
#AAD39F
accent
#DC4C69
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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