#AF42D8#AF42D8

#AF42D8 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.228 H 315.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF42D8
RGBrgb(175, 66, 216)
HSLhsl(284, 66%, 55%)
HSVhsv(284, 69%, 85%)
CMYKcmyk(19%, 69.4%, 0%, 15.3%)
CIE-LABlab(49.46, 65.76, -57.03)
CIE-LCHlch(49.46, 87.04, 319.07°)
OKLaboklab(59.32% 0.1614 -0.1605)
OKLCHoklch(59.32% 0.228 315.2)
XYZxyz(32.0201, 17.9694, 66.7342)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D8 #6BD842
analogous
#6442D8 #AF42D8 #D842B6
triadic
#AF42D8 #D8AF42 #42D8AF
tetradic
#AF42D8 #D86442 #6BD842 #42B6D8
square
#AF42D8 #D86442 #6BD842 #42B6D8
split-complementary
#AF42D8 #B6D842 #42D864
monochromatic
#681B84 #8F26B7 #AF42D8 #C475E2 #DAA7ED

Accessibility & contrast

On white

4.57
#AF42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AF42D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42D8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D8#FFFFFF#000000##000000
##AF42D81.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#3E78D5
Tritanopia (blue-blind)
#AC6189
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af42d8;
/* rgb */ color: rgb(175, 66, 216);
/* oklch */ color: oklch(59.3% 0.228 315.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fe5',
    500: '#af42d8',
    950: '#000000',
  },
}
SCSS
$custom: #af42d8;
$custom-light: #cb7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d8",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 283.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59322,
    "c": 0.22764,
    "h": 315.2
  },
  "luminance": 0.17968
}

Semantic roles & 50–950 ramp

primary
#AF42D8
secondary
#ADDA9C
accent
#E93F6D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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