#AF42CD#AF42CD

#AF42CD is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.218 H 318.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF42CD
RGBrgb(175, 66, 205)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(48.78, 63.61, -51.81)
CIE-LCHlch(48.78, 82.04, 320.84°)
OKLaboklab(58.62% 0.1621 -0.1453)
OKLCHoklch(58.62% 0.218 318.1)
XYZxyz(30.6453, 17.4195, 59.4938)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CD #60CD42
analogous
#6942CD #AF42CD #CD42A6
triadic
#AF42CD #CDAF42 #42CDAF
tetradic
#AF42CD #CD6942 #60CD42 #42A6CD
square
#AF42CD #CD6942 #60CD42 #42A6CD
split-complementary
#AF42CD #A6CD42 #42CD69
monochromatic
#631F76 #8C2CA6 #AF42CD #C372DA #D8A3E7

Accessibility & contrast

On white

4.68
#AF42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42CD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CD#FFFFFF#000000##FFFFFF
##AF42CD1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#AE5C83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42cd;
/* rgb */ color: rgb(175, 66, 205);
/* oklch */ color: oklch(58.6% 0.218 318.1);
Tailwind
colors: {
  custom: {
    50: '#cb7fdd',
    500: '#af42cd',
    950: '#000000',
  },
}
SCSS
$custom: #af42cd;
$custom-light: #cb7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af42cd",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 287.05,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58623,
    "c": 0.21769,
    "h": 318.1
  },
  "luminance": 0.17418
}

Semantic roles & 50–950 ramp

primary
#AF42CD
secondary
#A4D397
accent
#E14668
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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