#AF5DC0#AF5DC0

#AF5DC0 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.2% C 0.166 H 320.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF5DC0
RGBrgb(175, 93, 192)
HSLhsl(290, 44%, 56%)
HSVhsv(290, 52%, 75%)
CMYKcmyk(8.9%, 51.6%, 0%, 24.7%)
CIE-LABlab(52.67, 48.56, -38.15)
CIE-LCHlch(52.67, 61.75, 321.84°)
OKLaboklab(61.23% 0.1283 -0.1057)
OKLCHoklch(61.23% 0.166 320.5)
XYZxyz(31.1068, 20.7497, 52.2255)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DC0 #6EC05D
analogous
#7D5DC0 #AF5DC0 #C05D9F
triadic
#AF5DC0 #C0AF5D #5DC0AF
tetradic
#AF5DC0 #C07D5D #6EC05D #5D9FC0
square
#AF5DC0 #C07D5D #6EC05D #5D9FC0
split-complementary
#AF5DC0 #9FC05D #5DC07D
monochromatic
#692E75 #903FA1 #AF5DC0 #C589D1 #DBB5E2

Accessibility & contrast

On white

4.08
#AF5DC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AF5DC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DC0
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DC0#FFFFFF#000000##000000
##AF5DC01.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C78C3
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#B06B86
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5dc0;
/* rgb */ color: rgb(175, 93, 192);
/* oklch */ color: oklch(61.2% 0.166 320.5);
Tailwind
colors: {
  custom: {
    50: '#c98ed3',
    500: '#af5dc0',
    950: '#000000',
  },
}
SCSS
$custom: #af5dc0;
$custom-light: #c98ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dc0",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 192
  },
  "hsl": {
    "h": 289.697,
    "s": 44,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.16624,
    "h": 320.5
  },
  "luminance": 0.20748
}

Semantic roles & 50–950 ramp

primary
#AF5DC0
secondary
#AFD1A8
accent
#D4546A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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