#AF42DC#AF42DC

#AF42DC is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.6% C 0.231 H 314.1°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF42DC
RGBrgb(175, 66, 220)
HSLhsl(282, 69%, 56%)
HSVhsv(282, 70%, 86%)
CMYKcmyk(20.5%, 70%, 0%, 13.7%)
CIE-LABlab(49.71, 66.55, -58.90)
CIE-LCHlch(49.71, 88.87, 318.49°)
OKLaboklab(59.58% 0.161 -0.166)
OKLCHoklch(59.58% 0.231 314.1)
XYZxyz(32.5435, 18.1788, 69.4908)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42DC #6FDC42
analogous
#6242DC #AF42DC #DC42BC
triadic
#AF42DC #DCAF42 #42DCAF
tetradic
#AF42DC #DC6242 #6FDC42 #42BCDC
square
#AF42DC #DC6242 #6FDC42 #42BCDC
split-complementary
#AF42DC #BCDC42 #42DC62
monochromatic
#691A8A #9123BE #AF42DC #C576E6 #DBA9EF

Accessibility & contrast

On white

4.53
#AF42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#AF42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42DC#FFFFFF#000000##000000
##AF42DC1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#3979D9
Tritanopia (blue-blind)
#AB628B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af42dc;
/* rgb */ color: rgb(175, 66, 220);
/* oklch */ color: oklch(59.6% 0.231 314.1);
Tailwind
colors: {
  custom: {
    50: '#cb7fe8',
    500: '#af42dc',
    950: '#000000',
  },
}
SCSS
$custom: #af42dc;
$custom-light: #cb7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#af42dc",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 282.468,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59583,
    "c": 0.23128,
    "h": 314.1
  },
  "luminance": 0.18178
}

Semantic roles & 50–950 ramp

primary
#AF42DC
secondary
#B0DD9D
accent
#EC3C6F
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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