#AF42D2#AF42D2

#AF42D2 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.9% C 0.222 H 316.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF42D2
RGBrgb(175, 66, 210)
HSLhsl(285, 62%, 54%)
HSVhsv(285, 69%, 82%)
CMYKcmyk(16.7%, 68.6%, 0%, 17.6%)
CIE-LABlab(49.09, 64.58, -54.19)
CIE-LCHlch(49.09, 84.31, 320.00°)
OKLaboklab(58.94% 0.1619 -0.1522)
OKLCHoklch(58.94% 0.222 316.8)
XYZxyz(31.2585, 17.6648, 62.7234)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D2 #65D242
analogous
#6742D2 #AF42D2 #D242AD
triadic
#AF42D2 #D2AF42 #42D2AF
tetradic
#AF42D2 #D26742 #65D242 #42ADD2
square
#AF42D2 #D26742 #65D242 #42ADD2
split-complementary
#AF42D2 #ADD242 #42D267
monochromatic
#651E7C #8D29AD #AF42D2 #C473DE #D9A5EA

Accessibility & contrast

On white

4.63
#AF42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF42D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42D2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D2#FFFFFF#000000##FFFFFF
##AF42D21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#4478CF
Tritanopia (blue-blind)
#AD5E85
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af42d2;
/* rgb */ color: rgb(175, 66, 210);
/* oklch */ color: oklch(58.9% 0.222 316.8);
Tailwind
colors: {
  custom: {
    50: '#cb7fe0',
    500: '#af42d2',
    950: '#000000',
  },
}
SCSS
$custom: #af42d2;
$custom-light: #cb7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d2",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 285.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58937,
    "c": 0.2222,
    "h": 316.8
  },
  "luminance": 0.17664
}

Semantic roles & 50–950 ramp

primary
#AF42D2
secondary
#A8D799
accent
#E5436A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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