#AF42D6#AF42D6

#AF42D6 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.226 H 315.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF42D6
RGBrgb(175, 66, 214)
HSLhsl(284, 64%, 55%)
HSVhsv(284, 69%, 84%)
CMYKcmyk(18.2%, 69.2%, 0%, 16.1%)
CIE-LABlab(49.33, 65.36, -56.09)
CIE-LCHlch(49.33, 86.13, 319.37°)
OKLaboklab(59.19% 0.1616 -0.1578)
OKLCHoklch(59.19% 0.226 315.7)
XYZxyz(31.7631, 17.8666, 65.3807)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D6 #69D642
analogous
#6542D6 #AF42D6 #D642B3
triadic
#AF42D6 #D6AF42 #42D6AF
tetradic
#AF42D6 #D66542 #69D642 #42B3D6
square
#AF42D6 #D66542 #69D642 #42B3D6
split-complementary
#AF42D6 #B3D642 #42D665
monochromatic
#671C82 #8F27B4 #AF42D6 #C474E1 #DAA7EC

Accessibility & contrast

On white

4.59
#AF42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF42D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42D6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D6#FFFFFF#000000##FFFFFF
##AF42D61.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#4078D3
Tritanopia (blue-blind)
#AC6087
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af42d6;
/* rgb */ color: rgb(175, 66, 214);
/* oklch */ color: oklch(59.2% 0.226 315.7);
Tailwind
colors: {
  custom: {
    50: '#cb7fe3',
    500: '#af42d6',
    950: '#000000',
  },
}
SCSS
$custom: #af42d6;
$custom-light: #cb7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d6",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 284.189,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59192,
    "c": 0.22583,
    "h": 315.7
  },
  "luminance": 0.17865
}

Semantic roles & 50–950 ramp

primary
#AF42D6
secondary
#ABD99B
accent
#E7406C
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AF42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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