#AF4EC4#AF4EC4

#AF4EC4 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.4% C 0.193 H 320.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF4EC4
RGBrgb(175, 78, 196)
HSLhsl(289, 50%, 54%)
HSVhsv(289, 60%, 77%)
CMYKcmyk(10.7%, 60.2%, 0%, 23.1%)
CIE-LABlab(50.16, 56.66, -44.44)
CIE-LCHlch(50.16, 72.00, 321.89°)
OKLaboklab(59.45% 0.1484 -0.1238)
OKLCHoklch(59.45% 0.193 320.2)
XYZxyz(30.3662, 18.5496, 54.1948)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EC4 #63C44E
analogous
#744EC4 #AF4EC4 #C44E9E
triadic
#AF4EC4 #C4AF4E #4EC4AF
tetradic
#AF4EC4 #C4744E #63C44E #4E9EC4
square
#AF4EC4 #C4744E #63C44E #4E9EC4
split-complementary
#AF4EC4 #9EC44E #4EC474
monochromatic
#642672 #8D35A0 #AF4EC4 #C47CD3 #D8AAE3

Accessibility & contrast

On white

4.46
#AF4EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AF4EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EC4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EC4#FFFFFF#000000##000000
##AF4EC41.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3271C8
Deuteranopia (green-blind)
#587BC1
Tritanopia (blue-blind)
#B06182
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4ec4;
/* rgb */ color: rgb(175, 78, 196);
/* oklch */ color: oklch(59.4% 0.193 320.2);
Tailwind
colors: {
  custom: {
    50: '#ca85d6',
    500: '#af4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #af4ec4;
$custom-light: #ca85d6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ec4",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 289.322,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59449,
    "c": 0.19323,
    "h": 320.2
  },
  "luminance": 0.18548
}

Semantic roles & 50–950 ramp

primary
#AF4EC4
secondary
#A7D09E
accent
#DA4E67
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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