#AF46D2#AF46D2

#AF46D2 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.217 H 316.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF46D2
RGBrgb(175, 70, 210)
HSLhsl(285, 61%, 55%)
HSVhsv(285, 67%, 82%)
CMYKcmyk(16.7%, 66.7%, 0%, 17.6%)
CIE-LABlab(49.68, 62.93, -53.25)
CIE-LCHlch(49.68, 82.44, 319.76°)
OKLaboklab(59.36% 0.1576 -0.1495)
OKLCHoklch(59.36% 0.217 316.5)
XYZxyz(31.5005, 18.1486, 62.8040)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46D2 #69D246
analogous
#6946D2 #AF46D2 #D246AF
triadic
#AF46D2 #D2AF46 #46D2AF
tetradic
#AF46D2 #D26946 #69D246 #46AFD2
square
#AF46D2 #D26946 #69D246 #46AFD2
split-complementary
#AF46D2 #AFD246 #46D269
monochromatic
#671F7F #8F2BB0 #AF46D2 #C477DE #DAA8EA

Accessibility & contrast

On white

4.54
#AF46D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF46D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46D2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46D2#FFFFFF#000000##000000
##AF46D21.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#4779CF
Tritanopia (blue-blind)
#AD6186
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af46d2;
/* rgb */ color: rgb(175, 70, 210);
/* oklch */ color: oklch(59.4% 0.217 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb81e0',
    500: '#af46d2',
    950: '#000000',
  },
}
SCSS
$custom: #af46d2;
$custom-light: #cb81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af46d2",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 285,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59359,
    "c": 0.21722,
    "h": 316.5
  },
  "luminance": 0.18147
}

Semantic roles & 50–950 ramp

primary
#AF46D2
secondary
#ABD79C
accent
#E4446C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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