#AF5DCB#AF5DCB

#AF5DCB is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.8% C 0.177 H 316.8°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF5DCB
RGBrgb(175, 93, 203)
HSLhsl(285, 51%, 58%)
HSVhsv(285, 54%, 80%)
CMYKcmyk(13.8%, 54.2%, 0%, 20.4%)
CIE-LABlab(53.23, 50.78, -43.59)
CIE-LCHlch(53.23, 66.92, 319.36°)
OKLaboklab(61.82% 0.1294 -0.1214)
OKLCHoklch(61.82% 0.178 316.8)
XYZxyz(32.3715, 21.2556, 58.8859)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DCB #79CB5D
analogous
#785DCB #AF5DCB #CB5DB0
triadic
#AF5DCB #CBAF5D #5DCBAF
tetradic
#AF5DCB #CB785D #79CB5D #5DB0CB
square
#AF5DCB #CB785D #79CB5D #5DB0CB
split-complementary
#AF5DCB #B0CB5D #5DCB78
monochromatic
#6D2A83 #9339B2 #AF5DCB #C68BDA #DDBAE9

Accessibility & contrast

On white

4.00
#AF5DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AF5DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DCB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DCB#FFFFFF#000000##000000
##AF5DCB1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#447ACF
Deuteranopia (green-blind)
#5F82C8
Tritanopia (blue-blind)
#AE6E8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dcb;
/* rgb */ color: rgb(175, 93, 203);
/* oklch */ color: oklch(61.8% 0.177 316.8);
Tailwind
colors: {
  custom: {
    50: '#c98edb',
    500: '#af5dcb',
    950: '#000000',
  },
}
SCSS
$custom: #af5dcb;
$custom-light: #c98edb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dcb",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 284.727,
    "s": 51.402,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61815,
    "c": 0.1775,
    "h": 316.8
  },
  "luminance": 0.21254
}

Semantic roles & 50–950 ramp

primary
#AF5DCB
secondary
#B7D8AC
accent
#DB4D71
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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