#AF42D0#AF42D0

#AF42D0 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.220 H 317.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF42D0
RGBrgb(175, 66, 208)
HSLhsl(286, 60%, 54%)
HSVhsv(286, 68%, 82%)
CMYKcmyk(15.9%, 68.3%, 0%, 18.4%)
CIE-LABlab(48.97, 64.19, -53.24)
CIE-LCHlch(48.97, 83.40, 320.33°)
OKLaboklab(58.81% 0.162 -0.1495)
OKLCHoklch(58.81% 0.22 317.3)
XYZxyz(31.0109, 17.5657, 61.4193)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D0 #63D042
analogous
#6842D0 #AF42D0 #D042AA
triadic
#AF42D0 #D0AF42 #42D0AF
tetradic
#AF42D0 #D06842 #63D042 #42AAD0
square
#AF42D0 #D06842 #63D042 #42AAD0
split-complementary
#AF42D0 #AAD042 #42D068
monochromatic
#641E79 #8D2AAA #AF42D0 #C473DC #D8A4E8

Accessibility & contrast

On white

4.65
#AF42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF42D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42D0
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D0#FFFFFF#000000##FFFFFF
##AF42D01.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED4
Deuteranopia (green-blind)
#4678CD
Tritanopia (blue-blind)
#AE5D84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42d0;
/* rgb */ color: rgb(175, 66, 208);
/* oklch */ color: oklch(58.8% 0.220 317.3);
Tailwind
colors: {
  custom: {
    50: '#cb7fdf',
    500: '#af42d0',
    950: '#000000',
  },
}
SCSS
$custom: #af42d0;
$custom-light: #cb7fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d0",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 286.056,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5881,
    "c": 0.2204,
    "h": 317.3
  },
  "luminance": 0.17564
}

Semantic roles & 50–950 ramp

primary
#AF42D0
secondary
#A7D599
accent
#E34469
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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