#AF42D7#AF42D7

#AF42D7 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.227 H 315.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AF42D7
RGBrgb(175, 66, 215)
HSLhsl(284, 65%, 55%)
HSVhsv(284, 69%, 84%)
CMYKcmyk(18.6%, 69.3%, 0%, 15.7%)
CIE-LABlab(49.40, 65.56, -56.56)
CIE-LCHlch(49.40, 86.58, 319.22°)
OKLaboklab(59.26% 0.1615 -0.1592)
OKLCHoklch(59.26% 0.227 315.4)
XYZxyz(31.8912, 17.9179, 66.0554)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D7 #6AD742
analogous
#6542D7 #AF42D7 #D742B4
triadic
#AF42D7 #D7AF42 #42D7AF
tetradic
#AF42D7 #D76542 #6AD742 #42B4D7
square
#AF42D7 #D76542 #6AD742 #42B4D7
split-complementary
#AF42D7 #B4D742 #42D765
monochromatic
#671C83 #8F26B5 #AF42D7 #C475E2 #DAA7EC

Accessibility & contrast

On white

4.58
#AF42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF42D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42D7
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D7#FFFFFF#000000##000000
##AF42D71.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#3F78D4
Tritanopia (blue-blind)
#AC6088
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af42d7;
/* rgb */ color: rgb(175, 66, 215);
/* oklch */ color: oklch(59.3% 0.227 315.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fe4',
    500: '#af42d7',
    950: '#000000',
  },
}
SCSS
$custom: #af42d7;
$custom-light: #cb7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d7",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 283.893,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59257,
    "c": 0.22674,
    "h": 315.4
  },
  "luminance": 0.17917
}

Semantic roles & 50–950 ramp

primary
#AF42D7
secondary
#ACDA9B
accent
#E8406D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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