#AF6CEC#AF6CEC

#AF6CEC is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.9% C 0.190 H 306.0°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AF6CEC
RGBrgb(175, 108, 236)
HSLhsl(271, 77%, 67%)
HSVhsv(271, 54%, 93%)
CMYKcmyk(25.8%, 54.2%, 0%, 7.5%)
CIE-LABlab(57.94, 50.22, -54.73)
CIE-LCHlch(57.94, 74.28, 312.54°)
OKLaboklab(65.85% 0.1119 -0.154)
OKLCHoklch(65.85% 0.19 306)
XYZxyz(38.1789, 25.8955, 82.3276)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CEC #A9EC6C
analogous
#6F6CEC #AF6CEC #EC6CE9
triadic
#AF6CEC #ECAF6C #6CECAF
tetradic
#AF6CEC #EC6F6C #A9EC6C #6CE9EC
square
#AF6CEC #EC6F6C #A9EC6C #6CE9EC
split-complementary
#AF6CEC #E9EC6C #6CEC6F
monochromatic
#7319C4 #9236E5 #AF6CEC #CCA2F3 #EAD8FA

Accessibility & contrast

On white

3.40
#AF6CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#AF6CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CEC
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CEC#FFFFFF#000000##000000
##AF6CEC1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4089F0
Deuteranopia (green-blind)
#578CE9
Tritanopia (blue-blind)
#A584A2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6cec;
/* rgb */ color: rgb(175, 108, 236);
/* oklch */ color: oklch(65.9% 0.190 306.0);
Tailwind
colors: {
  custom: {
    50: '#ca98f3',
    500: '#af6cec',
    950: '#000000',
  },
}
SCSS
$custom: #af6cec;
$custom-light: #ca98f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cec",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 236
  },
  "hsl": {
    "h": 271.406,
    "s": 77.108,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65853,
    "c": 0.19039,
    "h": 306
  },
  "luminance": 0.25895
}

Semantic roles & 50–950 ramp

primary
#AF6CEC
secondary
#D9EEC6
accent
#D90C6E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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