#AF2DE2#AF2DE2

#AF2DE2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.2% C 0.257 H 313.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF2DE2
RGBrgb(175, 45, 226)
HSLhsl(283, 76%, 53%)
HSVhsv(283, 80%, 89%)
CMYKcmyk(22.6%, 80.1%, 0%, 11.4%)
CIE-LABlab(47.60, 74.93, -65.72)
CIE-LCHlch(47.60, 99.66, 318.75°)
OKLaboklab(58.22% 0.178 -0.1859)
OKLCHoklch(58.22% 0.257 313.8)
XYZxyz(32.3427, 16.4828, 73.4146)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DE2 #60E22D
analogous
#542DE2 #AF2DE2 #E22DBA
triadic
#AF2DE2 #E2AF2D #2DE2AF
tetradic
#AF2DE2 #E2542D #60E22D #2DBAE2
square
#AF2DE2 #E2542D #60E22D #2DBAE2
split-complementary
#AF2DE2 #BAE22D #2DE254
monochromatic
#631283 #8C19B8 #AF2DE2 #C363E9 #D899F1

Accessibility & contrast

On white

4.89
#AF2DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF2DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DE2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DE2#FFFFFF#000000##FFFFFF
##AF2DE21.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#1374DE
Tritanopia (blue-blind)
#AA5A89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af2de2;
/* rgb */ color: rgb(175, 45, 226);
/* oklch */ color: oklch(58.2% 0.257 313.8);
Tailwind
colors: {
  custom: {
    50: '#cc76ec',
    500: '#af2de2',
    950: '#000000',
  },
}
SCSS
$custom: #af2de2;
$custom-light: #cc76ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af2de2",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 283.094,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.2574,
    "h": 313.8
  },
  "luminance": 0.16482
}

Semantic roles & 50–950 ramp

primary
#AF2DE2
secondary
#A4DC8E
accent
#F2356B
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF2DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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