#AF4EC2#AF4EC2

#AF4EC2 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.3% C 0.191 H 320.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4EC2
RGBrgb(175, 78, 194)
HSLhsl(290, 49%, 53%)
HSVhsv(290, 60%, 76%)
CMYKcmyk(9.8%, 59.8%, 0%, 23.9%)
CIE-LABlab(50.05, 56.27, -43.45)
CIE-LCHlch(50.05, 71.10, 322.32°)
OKLaboklab(59.34% 0.1483 -0.121)
OKLCHoklch(59.34% 0.191 320.8)
XYZxyz(30.1401, 18.4592, 53.0039)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EC2 #61C24E
analogous
#754EC2 #AF4EC2 #C24E9B
triadic
#AF4EC2 #C2AF4E #4EC2AF
tetradic
#AF4EC2 #C2754E #61C24E #4E9BC2
square
#AF4EC2 #C2754E #61C24E #4E9BC2
split-complementary
#AF4EC2 #9BC24E #4EC275
monochromatic
#63266F #8C369D #AF4EC2 #C47CD2 #D8A9E1

Accessibility & contrast

On white

4.48
#AF4EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AF4EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EC2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EC2#FFFFFF#000000##000000
##AF4EC21.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#597BBF
Tritanopia (blue-blind)
#B06081
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4ec2;
/* rgb */ color: rgb(175, 78, 194);
/* oklch */ color: oklch(59.3% 0.191 320.8);
Tailwind
colors: {
  custom: {
    50: '#ca85d5',
    500: '#af4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ec2;
$custom-light: #ca85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ec2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 290.172,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59335,
    "c": 0.19135,
    "h": 320.8
  },
  "luminance": 0.18458
}

Semantic roles & 50–950 ramp

primary
#AF4EC2
secondary
#A5CF9D
accent
#D85066
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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