#AF42DE#AF42DE

#AF42DE is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.233 H 313.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF42DE
RGBrgb(175, 66, 222)
HSLhsl(282, 70%, 56%)
HSVhsv(282, 70%, 87%)
CMYKcmyk(21.2%, 70.3%, 0%, 12.9%)
CIE-LABlab(49.84, 66.95, -59.83)
CIE-LCHlch(49.84, 89.79, 318.22°)
OKLaboklab(59.72% 0.1608 -0.1688)
OKLCHoklch(59.72% 0.233 313.6)
XYZxyz(32.8099, 18.2854, 70.8942)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42DE #71DE42
analogous
#6142DE #AF42DE #DE42BF
triadic
#AF42DE #DEAF42 #42DEAF
tetradic
#AF42DE #DE6142 #71DE42 #42BFDE
square
#AF42DE #DE6142 #71DE42 #42BFDE
split-complementary
#AF42DE #BFDE42 #42DE61
monochromatic
#6A198D #9122C1 #AF42DE #C576E7 #DBAAF0

Accessibility & contrast

On white

4.51
#AF42DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AF42DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42DE
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42DE#FFFFFF#000000##000000
##AF42DE1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E2
Deuteranopia (green-blind)
#3779DB
Tritanopia (blue-blind)
#AA638C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af42de;
/* rgb */ color: rgb(175, 66, 222);
/* oklch */ color: oklch(59.7% 0.233 313.6);
Tailwind
colors: {
  custom: {
    50: '#cb7fe9',
    500: '#af42de',
    950: '#000000',
  },
}
SCSS
$custom: #af42de;
$custom-light: #cb7fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#af42de",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 281.923,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59715,
    "c": 0.23311,
    "h": 313.6
  },
  "luminance": 0.18284
}

Semantic roles & 50–950 ramp

primary
#AF42DE
secondary
#B1DE9E
accent
#ED3B70
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF42DE

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

Preview Lab → · Contrast checker → · Palette generator →

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