#AF6CE9#AF6CE9

#AF6CE9 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.7% C 0.187 H 306.7°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AF6CE9
RGBrgb(175, 108, 233)
HSLhsl(272, 74%, 67%)
HSVhsv(272, 54%, 91%)
CMYKcmyk(24.9%, 53.6%, 0%, 8.6%)
CIE-LABlab(57.77, 49.54, -53.31)
CIE-LCHlch(57.77, 72.78, 312.90°)
OKLaboklab(65.68% 0.1118 -0.1499)
OKLCHoklch(65.68% 0.187 306.7)
XYZxyz(37.7467, 25.7226, 80.0514)
Luminance0.2572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CE9 #A6E96C
analogous
#716CE9 #AF6CE9 #E96CE4
triadic
#AF6CE9 #E9AF6C #6CE9AF
tetradic
#AF6CE9 #E9716C #A6E96C #6CE4E9
square
#AF6CE9 #E9716C #A6E96C #6CE4E9
split-complementary
#AF6CE9 #E4E96C #6CE971
monochromatic
#731CBE #9237E1 #AF6CE9 #CCA1F1 #E9D6F9

Accessibility & contrast

On white

3.42
#AF6CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#AF6CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CE9
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CE9#FFFFFF#000000##000000
##AF6CE91.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4388ED
Deuteranopia (green-blind)
#598BE6
Tritanopia (blue-blind)
#A683A0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6ce9;
/* rgb */ color: rgb(175, 108, 233);
/* oklch */ color: oklch(65.7% 0.187 306.7);
Tailwind
colors: {
  custom: {
    50: '#ca98f0',
    500: '#af6ce9',
    950: '#000000',
  },
}
SCSS
$custom: #af6ce9;
$custom-light: #ca98f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ce9",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 233
  },
  "hsl": {
    "h": 272.16,
    "s": 73.964,
    "l": 66.863
  },
  "oklch": {
    "l": 0.65678,
    "c": 0.18697,
    "h": 306.7
  },
  "luminance": 0.25722
}

Semantic roles & 50–950 ramp

primary
#AF6CE9
secondary
#D7ECC4
accent
#D60F6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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