#AF5BDC#AF5BDC

#AF5BDC is a light, vivid violet. Relative luminance 0.218; OKLCH L 62.5% C 0.198 H 312.1°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF5BDC
RGBrgb(175, 91, 220)
HSLhsl(279, 65%, 61%)
HSVhsv(279, 59%, 86%)
CMYKcmyk(20.5%, 58.6%, 0%, 13.7%)
CIE-LABlab(53.78, 55.34, -52.38)
CIE-LCHlch(53.78, 76.20, 316.57°)
OKLaboklab(62.51% 0.1328 -0.1471)
OKLCHoklch(62.51% 0.198 312.1)
XYZxyz(34.3362, 21.7643, 70.0884)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BDC #88DC5B
analogous
#6E5BDC #AF5BDC #DC5BC8
triadic
#AF5BDC #DCAF5B #5BDCAF
tetradic
#AF5BDC #DC6E5B #88DC5B #5BC8DC
square
#AF5BDC #DC6E5B #88DC5B #5BC8DC
split-complementary
#AF5BDC #C8DC5B #5BDC6E
monochromatic
#71219B #952CCE #AF5BDC #C88DE7 #E0C0F2

Accessibility & contrast

On white

3.92
#AF5BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AF5BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BDC
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BDC#FFFFFF#000000##000000
##AF5BDC1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7CE0
Deuteranopia (green-blind)
#5282D9
Tritanopia (blue-blind)
#AA7293
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5bdc;
/* rgb */ color: rgb(175, 91, 220);
/* oklch */ color: oklch(62.5% 0.198 312.1);
Tailwind
colors: {
  custom: {
    50: '#ca8de7',
    500: '#af5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #af5bdc;
$custom-light: #ca8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bdc",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 279.07,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62514,
    "c": 0.1982,
    "h": 312.1
  },
  "luminance": 0.21763
}

Semantic roles & 50–950 ramp

primary
#AF5BDC
secondary
#C2E2B1
accent
#CD1958
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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