#AF4EC0#AF4EC0

#AF4EC0 is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.2% C 0.189 H 321.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF4EC0
RGBrgb(175, 78, 192)
HSLhsl(291, 48%, 53%)
HSVhsv(291, 59%, 75%)
CMYKcmyk(8.9%, 59.4%, 0%, 24.7%)
CIE-LABlab(49.94, 55.89, -42.47)
CIE-LCHlch(49.94, 70.19, 322.77°)
OKLaboklab(59.22% 0.1482 -0.1181)
OKLCHoklch(59.22% 0.189 321.4)
XYZxyz(29.9170, 18.3700, 51.8289)
Luminance0.1837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EC0 #5FC04E
analogous
#764EC0 #AF4EC0 #C04E98
triadic
#AF4EC0 #C0AF4E #4EC0AF
tetradic
#AF4EC0 #C0764E #5FC04E #4E98C0
square
#AF4EC0 #C0764E #5FC04E #4E98C0
split-complementary
#AF4EC0 #98C04E #4EC076
monochromatic
#62276D #8B379A #AF4EC0 #C37BD0 #D8A8E0

Accessibility & contrast

On white

4.49
#AF4EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#AF4EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EC0
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EC0#FFFFFF#000000##000000
##AF4EC01.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3670C4
Deuteranopia (green-blind)
#5A7ABD
Tritanopia (blue-blind)
#B15F80
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4ec0;
/* rgb */ color: rgb(175, 78, 192);
/* oklch */ color: oklch(59.2% 0.189 321.4);
Tailwind
colors: {
  custom: {
    50: '#ca85d3',
    500: '#af4ec0',
    950: '#000000',
  },
}
SCSS
$custom: #af4ec0;
$custom-light: #ca85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ec0",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 192
  },
  "hsl": {
    "h": 291.053,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59223,
    "c": 0.18947,
    "h": 321.4
  },
  "luminance": 0.18369
}

Semantic roles & 50–950 ramp

primary
#AF4EC0
secondary
#A4CE9C
accent
#D75165
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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