#AF6BDD#AF6BDD

#AF6BDD is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.8% C 0.175 H 309.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF6BDD
RGBrgb(175, 107, 221)
HSLhsl(276, 63%, 64%)
HSVhsv(276, 52%, 87%)
CMYKcmyk(20.8%, 51.6%, 0%, 13.3%)
CIE-LABlab(56.93, 47.36, -47.93)
CIE-LCHlch(56.93, 67.38, 314.66°)
OKLaboklab(64.85% 0.1123 -0.1342)
OKLCHoklch(64.85% 0.175 309.9)
XYZxyz(35.9856, 24.8504, 71.2935)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BDD #99DD6B
analogous
#766BDD #AF6BDD #DD6BD2
triadic
#AF6BDD #DDAF6B #6BDDAF
tetradic
#AF6BDD #DD766B #99DD6B #6BD2DD
square
#AF6BDD #DD766B #99DD6B #6BD2DD
split-complementary
#AF6BDD #D2DD6B #6BDD76
monochromatic
#7326A7 #9439D2 #AF6BDD #CA9DE8 #E5CFF4

Accessibility & contrast

On white

3.52
#AF6BDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#AF6BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BDD
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BDD#FFFFFF#000000##000000
##AF6BDD1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C85E1
Deuteranopia (green-blind)
#618ADA
Tritanopia (blue-blind)
#A97E9A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af6bdd;
/* rgb */ color: rgb(175, 107, 221);
/* oklch */ color: oklch(64.8% 0.175 309.9);
Tailwind
colors: {
  custom: {
    50: '#c997e8',
    500: '#af6bdd',
    950: '#000000',
  },
}
SCSS
$custom: #af6bdd;
$custom-light: #c997e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bdd",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 221
  },
  "hsl": {
    "h": 275.789,
    "s": 62.637,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64847,
    "c": 0.17493,
    "h": 309.9
  },
  "luminance": 0.2485
}

Semantic roles & 50–950 ramp

primary
#AF6BDD
secondary
#CEE6BE
accent
#CA1B62
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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