#AF5DCC#AF5DCC

#AF5DCC is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.9% C 0.179 H 316.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF5DCC
RGBrgb(175, 93, 204)
HSLhsl(284, 52%, 58%)
HSVhsv(284, 54%, 80%)
CMYKcmyk(14.2%, 54.4%, 0%, 20%)
CIE-LABlab(53.28, 50.98, -44.08)
CIE-LCHlch(53.28, 67.40, 319.16°)
OKLaboklab(61.87% 0.1295 -0.1229)
OKLCHoklch(61.87% 0.179 316.5)
XYZxyz(32.4910, 21.3034, 59.5155)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DCC #7ACC5D
analogous
#775DCC #AF5DCC #CC5DB2
triadic
#AF5DCC #CCAF5D #5DCCAF
tetradic
#AF5DCC #CC775D #7ACC5D #5DB2CC
square
#AF5DCC #CC775D #7ACC5D #5DB2CC
split-complementary
#AF5DCC #B2CC5D #5DCC77
monochromatic
#6D2A85 #9338B3 #AF5DCC #C68CDB #DDBAE9

Accessibility & contrast

On white

3.99
#AF5DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AF5DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DCC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DCC#FFFFFF#000000##000000
##AF5DCC1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#437AD0
Deuteranopia (green-blind)
#5F82C9
Tritanopia (blue-blind)
#AE6E8C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dcc;
/* rgb */ color: rgb(175, 93, 204);
/* oklch */ color: oklch(61.9% 0.179 316.5);
Tailwind
colors: {
  custom: {
    50: '#c98edc',
    500: '#af5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #af5dcc;
$custom-light: #c98edc;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dcc",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 284.324,
    "s": 52.113,
    "l": 58.235
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.17853,
    "h": 316.5
  },
  "luminance": 0.21302
}

Semantic roles & 50–950 ramp

primary
#AF5DCC
secondary
#B8D9AC
accent
#DC4C72
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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