#AF42E2#AF42E2

#AF42E2 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.0% C 0.237 H 312.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF42E2
RGBrgb(175, 66, 226)
HSLhsl(281, 73%, 57%)
HSVhsv(281, 71%, 89%)
CMYKcmyk(22.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(50.10, 67.76, -61.68)
CIE-LCHlch(50.10, 91.62, 317.69°)
OKLaboklab(59.98% 0.1604 -0.1742)
OKLCHoklch(59.98% 0.237 312.6)
XYZxyz(33.3524, 18.5023, 73.7511)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42E2 #75E242
analogous
#5F42E2 #AF42E2 #E242C5
triadic
#AF42E2 #E2AF42 #42E2AF
tetradic
#AF42E2 #E25F42 #75E242 #42C5E2
square
#AF42E2 #E25F42 #75E242 #42C5E2
split-complementary
#AF42E2 #C5E242 #42E25F
monochromatic
#6B1793 #921FC8 #AF42E2 #C577EA #DCACF2

Accessibility & contrast

On white

4.47
#AF42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AF42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42E2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42E2#FFFFFF#000000##000000
##AF42E21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#3179DE
Tritanopia (blue-blind)
#A9658E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af42e2;
/* rgb */ color: rgb(175, 66, 226);
/* oklch */ color: oklch(60.0% 0.237 312.6);
Tailwind
colors: {
  custom: {
    50: '#cb80ec',
    500: '#af42e2',
    950: '#000000',
  },
}
SCSS
$custom: #af42e2;
$custom-light: #cb80ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af42e2",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 280.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59982,
    "c": 0.23677,
    "h": 312.6
  },
  "luminance": 0.18501
}

Semantic roles & 50–950 ramp

primary
#AF42E2
secondary
#B4E09F
accent
#F03872
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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