#AF2FD3#AF2FD3

#AF2FD3 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.3% C 0.243 H 317.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF2FD3
RGBrgb(175, 47, 211)
HSLhsl(287, 65%, 51%)
HSVhsv(287, 78%, 83%)
CMYKcmyk(17.1%, 77.7%, 0%, 17.3%)
CIE-LABlab(46.78, 71.53, -58.48)
CIE-LCHlch(46.78, 92.40, 320.73°)
OKLaboklab(57.32% 0.1792 -0.1647)
OKLCHoklch(57.32% 0.243 317.4)
XYZxyz(30.4519, 15.8515, 63.0710)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FD3 #53D32F
analogous
#5D2FD3 #AF2FD3 #D32FA5
triadic
#AF2FD3 #D3AF2F #2FD3AF
tetradic
#AF2FD3 #D35D2F #53D32F #2FA5D3
square
#AF2FD3 #D35D2F #53D32F #2FA5D3
split-complementary
#AF2FD3 #A5D32F #2FD35D
monochromatic
#5D1870 #8622A2 #AF2FD3 #C262DE #D694E8

Accessibility & contrast

On white

5.04
#AF2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF2FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FD3
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FD3#FFFFFF#000000##FFFFFF
##AF2FD31.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#3373CF
Tritanopia (blue-blind)
#AD5481
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af2fd3;
/* rgb */ color: rgb(175, 47, 211);
/* oklch */ color: oklch(57.3% 0.243 317.4);
Tailwind
colors: {
  custom: {
    50: '#cc76e1',
    500: '#af2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #af2fd3;
$custom-light: #cc76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fd3",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 286.829,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57318,
    "c": 0.24336,
    "h": 317.4
  },
  "luminance": 0.1585
}

Semantic roles & 50–950 ramp

primary
#AF2FD3
secondary
#9AD38A
accent
#E84065
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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