#AF46DE#AF46DE

#AF46DE is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.1% C 0.228 H 313.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF46DE
RGBrgb(175, 70, 222)
HSLhsl(281, 70%, 57%)
HSVhsv(281, 68%, 87%)
CMYKcmyk(21.2%, 68.5%, 0%, 12.9%)
CIE-LABlab(50.42, 65.33, -58.90)
CIE-LCHlch(50.42, 87.96, 317.96°)
OKLaboklab(60.13% 0.1568 -0.1661)
OKLCHoklch(60.13% 0.228 313.3)
XYZxyz(33.0519, 18.7692, 70.9748)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46DE #75DE46
analogous
#6346DE #AF46DE #DE46C1
triadic
#AF46DE #DEAF46 #46DEAF
tetradic
#AF46DE #DE6346 #75DE46 #46C1DE
square
#AF46DE #DE6346 #75DE46 #46C1DE
split-complementary
#AF46DE #C1DE46 #46DE63
monochromatic
#6B1A90 #9223C4 #AF46DE #C57AE7 #DCAEF1

Accessibility & contrast

On white

4.42
#AF46DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AF46DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46DE
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46DE#FFFFFF#000000##000000
##AF46DE1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E2
Deuteranopia (green-blind)
#3B7ADB
Tritanopia (blue-blind)
#AA658D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af46de;
/* rgb */ color: rgb(175, 70, 222);
/* oklch */ color: oklch(60.1% 0.228 313.3);
Tailwind
colors: {
  custom: {
    50: '#cb81e9',
    500: '#af46de',
    950: '#000000',
  },
}
SCSS
$custom: #af46de;
$custom-light: #cb81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af46de",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 222
  },
  "hsl": {
    "h": 281.447,
    "s": 69.725,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60126,
    "c": 0.22837,
    "h": 313.3
  },
  "luminance": 0.18768
}

Semantic roles & 50–950 ramp

primary
#AF46DE
secondary
#B4DFA1
accent
#ED3B72
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF46DE

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

Preview Lab → · Contrast checker → · Palette generator →

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