#AF42E4#AF42E4

#AF42E4 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.1% C 0.239 H 312.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF42E4
RGBrgb(175, 66, 228)
HSLhsl(280, 75%, 58%)
HSVhsv(280, 71%, 89%)
CMYKcmyk(23.2%, 71.1%, 0%, 10.6%)
CIE-LABlab(50.23, 68.16, -62.60)
CIE-LCHlch(50.23, 92.54, 317.44°)
OKLaboklab(60.12% 0.1601 -0.1769)
OKLCHoklch(60.12% 0.239 312.1)
XYZxyz(33.6284, 18.6128, 75.2049)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42E4 #77E442
analogous
#5E42E4 #AF42E4 #E442C8
triadic
#AF42E4 #E4AF42 #42E4AF
tetradic
#AF42E4 #E45E42 #77E442 #42C8E4
square
#AF42E4 #E45E42 #77E442 #42C8E4
split-complementary
#AF42E4 #C8E442 #42E45E
monochromatic
#6C1596 #931DCC #AF42E4 #C678EC #DCADF3

Accessibility & contrast

On white

4.45
#AF42E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF42E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42E4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42E4#FFFFFF#000000##000000
##AF42E41.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#2E7AE0
Tritanopia (blue-blind)
#A9668F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af42e4;
/* rgb */ color: rgb(175, 66, 228);
/* oklch */ color: oklch(60.1% 0.239 312.1);
Tailwind
colors: {
  custom: {
    50: '#cc80ed',
    500: '#af42e4',
    950: '#000000',
  },
}
SCSS
$custom: #af42e4;
$custom-light: #cc80ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af42e4",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 280.37,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60117,
    "c": 0.2386,
    "h": 312.1
  },
  "luminance": 0.18612
}

Semantic roles & 50–950 ramp

primary
#AF42E4
secondary
#B6E2A0
accent
#F23674
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF42E4

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

Preview Lab → · Contrast checker → · Palette generator →

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