#AF6CEE#AF6CEE

#AF6CEE is a light, vivid violet. Relative luminance 0.260; OKLCH L 66.0% C 0.193 H 305.6°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AF6CEE
RGBrgb(175, 108, 238)
HSLhsl(271, 79%, 68%)
HSVhsv(271, 55%, 93%)
CMYKcmyk(26.5%, 54.6%, 0%, 6.7%)
CIE-LABlab(58.05, 50.68, -55.66)
CIE-LCHlch(58.05, 75.28, 312.32°)
OKLaboklab(65.97% 0.112 -0.1567)
OKLCHoklch(65.97% 0.193 305.6)
XYZxyz(38.4711, 26.0124, 83.8665)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CEE #ABEE6C
analogous
#6E6CEE #AF6CEE #EE6CEC
triadic
#AF6CEE #EEAF6C #6CEEAF
tetradic
#AF6CEE #EE6E6C #ABEE6C #6CECEE
square
#AF6CEE #EE6E6C #ABEE6C #6CECEE
split-complementary
#AF6CEE #ECEE6C #6CEE6E
monochromatic
#7317C8 #9135E8 #AF6CEE #CDA3F4 #EBDAFB

Accessibility & contrast

On white

3.39
#AF6CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#AF6CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CEE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CEE#FFFFFF#000000##000000
##AF6CEE1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E89F2
Deuteranopia (green-blind)
#558CEB
Tritanopia (blue-blind)
#A584A3
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6cee;
/* rgb */ color: rgb(175, 108, 238);
/* oklch */ color: oklch(66.0% 0.193 305.6);
Tailwind
colors: {
  custom: {
    50: '#ca98f4',
    500: '#af6cee',
    950: '#000000',
  },
}
SCSS
$custom: #af6cee;
$custom-light: #ca98f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cee",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 238
  },
  "hsl": {
    "h": 270.923,
    "s": 79.268,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6597,
    "c": 0.19266,
    "h": 305.6
  },
  "luminance": 0.26012
}

Semantic roles & 50–950 ramp

primary
#AF6CEE
secondary
#DAEFC7
accent
#DC0A70
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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