#AF5BD7#AF5BD7

#AF5BD7 is a light, vivid purple. Relative luminance 0.215; OKLCH L 62.2% C 0.193 H 313.4°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF5BD7
RGBrgb(175, 91, 215)
HSLhsl(281, 61%, 60%)
HSVhsv(281, 58%, 84%)
CMYKcmyk(18.6%, 57.7%, 0%, 15.7%)
CIE-LABlab(53.50, 54.28, -50.00)
CIE-LCHlch(53.50, 73.80, 317.35°)
OKLaboklab(62.22% 0.1327 -0.1401)
OKLCHoklch(62.22% 0.193 313.4)
XYZxyz(33.6839, 21.5034, 66.6530)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BD7 #83D75B
analogous
#715BD7 #AF5BD7 #D75BC1
triadic
#AF5BD7 #D7AF5B #5BD7AF
tetradic
#AF5BD7 #D7715B #83D75B #5BC1D7
square
#AF5BD7 #D7715B #83D75B #5BC1D7
split-complementary
#AF5BD7 #C1D75B #5BD771
monochromatic
#702494 #9530C5 #AF5BD7 #C78CE3 #DFBDEF

Accessibility & contrast

On white

3.96
#AF5BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#AF5BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BD7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BD7#FFFFFF#000000##000000
##AF5BD71.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#357BDB
Deuteranopia (green-blind)
#5682D4
Tritanopia (blue-blind)
#AB7190
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5bd7;
/* rgb */ color: rgb(175, 91, 215);
/* oklch */ color: oklch(62.2% 0.193 313.4);
Tailwind
colors: {
  custom: {
    50: '#ca8de4',
    500: '#af5bd7',
    950: '#000000',
  },
}
SCSS
$custom: #af5bd7;
$custom-light: #ca8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bd7",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 280.645,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.62219,
    "c": 0.19299,
    "h": 313.4
  },
  "luminance": 0.21502
}

Semantic roles & 50–950 ramp

primary
#AF5BD7
secondary
#BEDFAF
accent
#E44478
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C15
muted
#827D84

Preview Lab

Preview with #AF5BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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