#AF42CC#AF42CC

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

Color values

HEX#AF42CC
RGBrgb(175, 66, 204)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.2%, 67.6%, 0%, 20%)
CIE-LABlab(48.72, 63.42, -51.33)
CIE-LCHlch(48.72, 81.59, 321.02°)
OKLaboklab(58.56% 0.1622 -0.1439)
OKLCHoklch(58.56% 0.217 318.4)
XYZxyz(30.5250, 17.3714, 58.8601)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CC #5FCC42
analogous
#6A42CC #AF42CC #CC42A4
triadic
#AF42CC #CCAF42 #42CCAF
tetradic
#AF42CC #CC6A42 #5FCC42 #42A4CC
square
#AF42CC #CC6A42 #5FCC42 #42A4CC
split-complementary
#AF42CC #A4CC42 #42CC6A
monochromatic
#621F74 #8B2CA4 #AF42CC #C372D9 #D8A2E6

Accessibility & contrast

On white

4.69
#AF42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42CC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CC#FFFFFF#000000##FFFFFF
##AF42CC1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#4977C9
Tritanopia (blue-blind)
#AF5C82
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42cc;
/* rgb */ color: rgb(175, 66, 204);
/* oklch */ color: oklch(58.6% 0.217 318.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fdc',
    500: '#af42cc',
    950: '#000000',
  },
}
SCSS
$custom: #af42cc;
$custom-light: #cb7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af42cc",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 287.391,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58561,
    "c": 0.2168,
    "h": 318.4
  },
  "luminance": 0.1737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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