#AF5BDD#AF5BDD

#AF5BDD is a light, vivid violet. Relative luminance 0.218; OKLCH L 62.6% C 0.199 H 311.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF5BDD
RGBrgb(175, 91, 221)
HSLhsl(279, 66%, 61%)
HSVhsv(279, 59%, 87%)
CMYKcmyk(20.8%, 58.8%, 0%, 13.3%)
CIE-LABlab(53.83, 55.56, -52.86)
CIE-LCHlch(53.83, 76.69, 316.43°)
OKLaboklab(62.57% 0.1329 -0.1485)
OKLCHoklch(62.57% 0.199 311.8)
XYZxyz(34.4691, 21.8174, 70.7880)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BDD #89DD5B
analogous
#6E5BDD #AF5BDD #DD5BCA
triadic
#AF5BDD #DDAF5B #5BDDAF
tetradic
#AF5BDD #DD6E5B #89DD5B #5BCADD
square
#AF5BDD #DD6E5B #89DD5B #5BCADD
split-complementary
#AF5BDD #CADD5B #5BDD6E
monochromatic
#71219D #952BD0 #AF5BDD #C88EE8 #E0C0F2

Accessibility & contrast

On white

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

On black

5.36
#AF5BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BDD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BDD#FFFFFF#000000##000000
##AF5BDD1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7CE1
Deuteranopia (green-blind)
#5182DA
Tritanopia (blue-blind)
#AA7394
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5bdd;
/* rgb */ color: rgb(175, 91, 221);
/* oklch */ color: oklch(62.6% 0.199 311.8);
Tailwind
colors: {
  custom: {
    50: '#ca8de8',
    500: '#af5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #af5bdd;
$custom-light: #ca8de8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bdd",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 278.769,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62574,
    "c": 0.19924,
    "h": 311.8
  },
  "luminance": 0.21817
}

Semantic roles & 50–950 ramp

primary
#AF5BDD
secondary
#C3E2B1
accent
#CE1858
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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