#AF42D4#AF42D4

#AF42D4 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.224 H 316.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF42D4
RGBrgb(175, 66, 212)
HSLhsl(285, 63%, 55%)
HSVhsv(285, 69%, 83%)
CMYKcmyk(17.5%, 68.9%, 0%, 16.9%)
CIE-LABlab(49.21, 64.97, -55.14)
CIE-LCHlch(49.21, 85.22, 319.68°)
OKLaboklab(59.06% 0.1617 -0.155)
OKLCHoklch(59.06% 0.224 316.2)
XYZxyz(31.5092, 17.7651, 64.0438)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D4 #67D442
analogous
#6642D4 #AF42D4 #D442B0
triadic
#AF42D4 #D4AF42 #42D4AF
tetradic
#AF42D4 #D46642 #67D442 #42B0D4
square
#AF42D4 #D46642 #67D442 #42B0D4
split-complementary
#AF42D4 #B0D442 #42D466
monochromatic
#661D7F #8E28B1 #AF42D4 #C474DF #D9A6EB

Accessibility & contrast

On white

4.61
#AF42D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AF42D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42D4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D4#FFFFFF#000000##FFFFFF
##AF42D41.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#4278D1
Tritanopia (blue-blind)
#AD5F86
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af42d4;
/* rgb */ color: rgb(175, 66, 212);
/* oklch */ color: oklch(59.1% 0.224 316.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fe2',
    500: '#af42d4',
    950: '#000000',
  },
}
SCSS
$custom: #af42d4;
$custom-light: #cb7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d4",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 284.795,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.22401,
    "h": 316.2
  },
  "luminance": 0.17764
}

Semantic roles & 50–950 ramp

primary
#AF42D4
secondary
#AAD89A
accent
#E6426B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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