#AF42DD#AF42DD

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

Color values

HEX#AF42DD
RGBrgb(175, 66, 221)
HSLhsl(282, 70%, 56%)
HSVhsv(282, 70%, 87%)
CMYKcmyk(20.8%, 70.1%, 0%, 13.3%)
CIE-LABlab(49.78, 66.75, -59.36)
CIE-LCHlch(49.78, 89.33, 318.35°)
OKLaboklab(59.65% 0.1609 -0.1674)
OKLCHoklch(59.65% 0.232 313.9)
XYZxyz(32.6763, 18.2319, 70.1904)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42DD #70DD42
analogous
#6242DD #AF42DD #DD42BD
triadic
#AF42DD #DDAF42 #42DDAF
tetradic
#AF42DD #DD6242 #70DD42 #42BDDD
square
#AF42DD #DD6242 #70DD42 #42BDDD
split-complementary
#AF42DD #BDDD42 #42DD62
monochromatic
#6A198C #9122BF #AF42DD #C576E6 #DBAAF0

Accessibility & contrast

On white

4.52
#AF42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AF42DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42DD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42DD#FFFFFF#000000##000000
##AF42DD1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#3879DA
Tritanopia (blue-blind)
#AB638B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af42dd;
/* rgb */ color: rgb(175, 66, 221);
/* oklch */ color: oklch(59.6% 0.232 313.9);
Tailwind
colors: {
  custom: {
    50: '#cb7fe8',
    500: '#af42dd',
    950: '#000000',
  },
}
SCSS
$custom: #af42dd;
$custom-light: #cb7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#af42dd",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 282.194,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59649,
    "c": 0.2322,
    "h": 313.9
  },
  "luminance": 0.18231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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