#AF2DDB#AF2DDB

#AF2DDB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.7% C 0.252 H 315.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF2DDB
RGBrgb(175, 45, 219)
HSLhsl(285, 71%, 52%)
HSVhsv(285, 79%, 86%)
CMYKcmyk(20.1%, 79.5%, 0%, 14.1%)
CIE-LABlab(47.11, 73.61, -62.52)
CIE-LCHlch(47.11, 96.58, 319.66°)
OKLaboklab(57.72% 0.1794 -0.1765)
OKLCHoklch(57.72% 0.252 315.5)
XYZxyz(31.4017, 16.1064, 68.4588)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DDB #59DB2D
analogous
#582DDB #AF2DDB #DB2DB0
triadic
#AF2DDB #DBAF2D #2DDBAF
tetradic
#AF2DDB #DB582D #59DB2D #2DB0DB
square
#AF2DDB #DB582D #59DB2D #2DB0DB
split-complementary
#AF2DDB #B0DB2D #2DDB58
monochromatic
#601579 #891EAD #AF2DDB #C361E4 #D795ED

Accessibility & contrast

On white

4.98
#AF2DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF2DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DDB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DDB#FFFFFF#000000##FFFFFF
##AF2DDB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#2573D7
Tritanopia (blue-blind)
#AB5785
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af2ddb;
/* rgb */ color: rgb(175, 45, 219);
/* oklch */ color: oklch(57.7% 0.252 315.5);
Tailwind
colors: {
  custom: {
    50: '#cc76e7',
    500: '#af2ddb',
    950: '#000000',
  },
}
SCSS
$custom: #af2ddb;
$custom-light: #cc76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ddb",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 219
  },
  "hsl": {
    "h": 284.828,
    "s": 70.732,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57724,
    "c": 0.25167,
    "h": 315.5
  },
  "luminance": 0.16105
}

Semantic roles & 50–950 ramp

primary
#AF2DDB
secondary
#9FD88C
accent
#ED3A68
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF2DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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