#AF3FD4#AF3FD4

#AF3FD4 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.8% C 0.228 H 316.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF3FD4
RGBrgb(175, 63, 212)
HSLhsl(285, 63%, 54%)
HSVhsv(285, 70%, 83%)
CMYKcmyk(17.5%, 70.3%, 0%, 16.9%)
CIE-LABlab(48.79, 66.16, -55.82)
CIE-LCHlch(48.79, 86.56, 319.85°)
OKLaboklab(58.76% 0.1648 -0.157)
OKLCHoklch(58.76% 0.228 316.4)
XYZxyz(31.3386, 17.4237, 63.9869)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FD4 #64D43F
analogous
#653FD4 #AF3FD4 #D43FAE
triadic
#AF3FD4 #D4AF3F #3FD4AF
tetradic
#AF3FD4 #D4653F #64D43F #3FAED4
square
#AF3FD4 #D4653F #64D43F #3FAED4
split-complementary
#AF3FD4 #AED43F #3FD465
monochromatic
#651C7D #8D27AF #AF3FD4 #C471DF #D9A3EA

Accessibility & contrast

On white

4.68
#AF3FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF3FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FD4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FD4#FFFFFF#000000##FFFFFF
##AF3FD41.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#3F77D1
Tritanopia (blue-blind)
#AD5D86
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af3fd4;
/* rgb */ color: rgb(175, 63, 212);
/* oklch */ color: oklch(58.8% 0.228 316.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ee2',
    500: '#af3fd4',
    950: '#000000',
  },
}
SCSS
$custom: #af3fd4;
$custom-light: #cb7ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fd4",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 212
  },
  "hsl": {
    "h": 285.101,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58764,
    "c": 0.22757,
    "h": 316.4
  },
  "luminance": 0.17422
}

Semantic roles & 50–950 ramp

primary
#AF3FD4
secondary
#A7D798
accent
#E6416A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF3FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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