#AF42D9#AF42D9

#AF42D9 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.4% C 0.229 H 314.9°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF42D9
RGBrgb(175, 66, 217)
HSLhsl(283, 67%, 55%)
HSVhsv(283, 70%, 85%)
CMYKcmyk(19.4%, 69.6%, 0%, 14.9%)
CIE-LABlab(49.52, 65.95, -57.50)
CIE-LCHlch(49.52, 87.50, 318.92°)
OKLaboklab(59.39% 0.1613 -0.1619)
OKLCHoklch(59.39% 0.229 314.9)
XYZxyz(32.1497, 18.0213, 67.4171)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D9 #6CD942
analogous
#6342D9 #AF42D9 #D942B8
triadic
#AF42D9 #D9AF42 #42D9AF
tetradic
#AF42D9 #D96342 #6CD942 #42B8D9
square
#AF42D9 #D96342 #6CD942 #42B8D9
split-complementary
#AF42D9 #B8D942 #42D963
monochromatic
#681B86 #9025B9 #AF42D9 #C575E3 #DAA8ED

Accessibility & contrast

On white

4.56
#AF42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AF42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42D9
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D9#FFFFFF#000000##000000
##AF42D91.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#3D79D6
Tritanopia (blue-blind)
#AC6189
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af42d9;
/* rgb */ color: rgb(175, 66, 217);
/* oklch */ color: oklch(59.4% 0.229 314.9);
Tailwind
colors: {
  custom: {
    50: '#cb7fe5',
    500: '#af42d9',
    950: '#000000',
  },
}
SCSS
$custom: #af42d9;
$custom-light: #cb7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d9",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 283.311,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59387,
    "c": 0.22855,
    "h": 314.9
  },
  "luminance": 0.1802
}

Semantic roles & 50–950 ramp

primary
#AF42D9
secondary
#ADDB9C
accent
#E93E6E
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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