#AF6FDF#AF6FDF

#AF6FDF is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.6% C 0.171 H 308.8°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF6FDF
RGBrgb(175, 111, 223)
HSLhsl(274, 64%, 65%)
HSVhsv(274, 50%, 87%)
CMYKcmyk(21.5%, 50.2%, 0%, 12.5%)
CIE-LABlab(57.86, 45.68, -47.58)
CIE-LCHlch(57.86, 65.96, 313.83°)
OKLaboklab(65.57% 0.1071 -0.1332)
OKLCHoklch(65.57% 0.171 308.8)
XYZxyz(36.6803, 25.8111, 72.8474)
Luminance0.2581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FDF #9FDF6F
analogous
#776FDF #AF6FDF #DF6FD7
triadic
#AF6FDF #DFAF6F #6FDFAF
tetradic
#AF6FDF #DF776F #9FDF6F #6FD7DF
square
#AF6FDF #DF776F #9FDF6F #6FD7DF
split-complementary
#AF6FDF #D7DF6F #6FDF77
monochromatic
#7326AD #933DD4 #AF6FDF #CBA1EA #E7D3F5

Accessibility & contrast

On white

3.41
#AF6FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#AF6FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FDF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FDF#FFFFFF#000000##000000
##AF6FDF1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5188E3
Deuteranopia (green-blind)
#638CDC
Tritanopia (blue-blind)
#A8829D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6fdf;
/* rgb */ color: rgb(175, 111, 223);
/* oklch */ color: oklch(65.6% 0.171 308.8);
Tailwind
colors: {
  custom: {
    50: '#c99ae9',
    500: '#af6fdf',
    950: '#000000',
  },
}
SCSS
$custom: #af6fdf;
$custom-light: #c99ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#af6fdf",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 223
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65568,
    "c": 0.17087,
    "h": 308.8
  },
  "luminance": 0.25811
}

Semantic roles & 50–950 ramp

primary
#AF6FDF
secondary
#D2E8C2
accent
#CB1A66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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