#AF42DA#AF42DA

#AF42DA is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.229 H 314.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF42DA
RGBrgb(175, 66, 218)
HSLhsl(283, 67%, 56%)
HSVhsv(283, 70%, 85%)
CMYKcmyk(19.7%, 69.7%, 0%, 14.5%)
CIE-LABlab(49.59, 66.15, -57.96)
CIE-LCHlch(49.59, 87.95, 318.78°)
OKLaboklab(59.45% 0.1612 -0.1633)
OKLCHoklch(59.45% 0.229 314.6)
XYZxyz(32.2802, 18.0735, 68.1042)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42DA #6DDA42
analogous
#6342DA #AF42DA #DA42B9
triadic
#AF42DA #DAAF42 #42DAAF
tetradic
#AF42DA #DA6342 #6DDA42 #42B9DA
square
#AF42DA #DA6342 #6DDA42 #42B9DA
split-complementary
#AF42DA #B9DA42 #42DA63
monochromatic
#681A87 #9024BA #AF42DA #C575E4 #DAA8EE

Accessibility & contrast

On white

4.55
#AF42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF42DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42DA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42DA#FFFFFF#000000##000000
##AF42DA1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DE
Deuteranopia (green-blind)
#3C79D7
Tritanopia (blue-blind)
#AB618A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af42da;
/* rgb */ color: rgb(175, 66, 218);
/* oklch */ color: oklch(59.5% 0.229 314.6);
Tailwind
colors: {
  custom: {
    50: '#cb7fe6',
    500: '#af42da',
    950: '#000000',
  },
}
SCSS
$custom: #af42da;
$custom-light: #cb7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#af42da",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 283.026,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59452,
    "c": 0.22946,
    "h": 314.6
  },
  "luminance": 0.18072
}

Semantic roles & 50–950 ramp

primary
#AF42DA
secondary
#AEDB9C
accent
#EA3E6E
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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