#AF46DC#AF46DC

#AF46DC is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.227 H 313.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF46DC
RGBrgb(175, 70, 220)
HSLhsl(282, 68%, 57%)
HSVhsv(282, 68%, 86%)
CMYKcmyk(20.5%, 68.2%, 0%, 13.7%)
CIE-LABlab(50.29, 64.92, -57.97)
CIE-LCHlch(50.29, 87.04, 318.24°)
OKLaboklab(60% 0.1569 -0.1633)
OKLCHoklch(60% 0.227 313.9)
XYZxyz(32.7854, 18.6626, 69.5715)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46DC #73DC46
analogous
#6446DC #AF46DC #DC46BE
triadic
#AF46DC #DCAF46 #46DCAF
tetradic
#AF46DC #DC6446 #73DC46 #46BEDC
square
#AF46DC #DC6446 #73DC46 #46BEDC
split-complementary
#AF46DC #BEDC46 #46DC64
monochromatic
#6B1B8D #9224C0 #AF46DC #C579E6 #DCADEF

Accessibility & contrast

On white

4.44
#AF46DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF46DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46DC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46DC#FFFFFF#000000##000000
##AF46DC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#3D7AD9
Tritanopia (blue-blind)
#AB658C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af46dc;
/* rgb */ color: rgb(175, 70, 220);
/* oklch */ color: oklch(60.0% 0.227 313.9);
Tailwind
colors: {
  custom: {
    50: '#cb81e8',
    500: '#af46dc',
    950: '#000000',
  },
}
SCSS
$custom: #af46dc;
$custom-light: #cb81e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af46dc",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 282,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59996,
    "c": 0.2265,
    "h": 313.9
  },
  "luminance": 0.18662
}

Semantic roles & 50–950 ramp

primary
#AF46DC
secondary
#B3DDA0
accent
#EB3D71
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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