#AF6FE9#AF6FE9

#AF6FE9 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.182 H 306.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF6FE9
RGBrgb(175, 111, 233)
HSLhsl(271, 73%, 67%)
HSVhsv(271, 52%, 91%)
CMYKcmyk(24.9%, 52.4%, 0%, 8.6%)
CIE-LABlab(58.38, 47.95, -52.34)
CIE-LCHlch(58.38, 70.98, 312.49°)
OKLaboklab(66.13% 0.1079 -0.147)
OKLCHoklch(66.13% 0.182 306.3)
XYZxyz(38.0686, 26.3664, 80.1587)
Luminance0.2637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FE9 #A9E96F
analogous
#726FE9 #AF6FE9 #E96FE6
triadic
#AF6FE9 #E9AF6F #6FE9AF
tetradic
#AF6FE9 #E9726F #A9E96F #6FE6E9
square
#AF6FE9 #E9726F #A9E96F #6FE6E9
split-complementary
#AF6FE9 #E6E96F #6FE972
monochromatic
#731DC0 #923AE1 #AF6FE9 #CCA4F1 #EAD9F9

Accessibility & contrast

On white

3.35
#AF6FE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#AF6FE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FE9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FE9#FFFFFF#000000##000000
##AF6FE91.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#488AED
Deuteranopia (green-blind)
#5D8DE6
Tritanopia (blue-blind)
#A685A2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6fe9;
/* rgb */ color: rgb(175, 111, 233);
/* oklch */ color: oklch(66.1% 0.182 306.3);
Tailwind
colors: {
  custom: {
    50: '#ca9af0',
    500: '#af6fe9',
    950: '#000000',
  },
}
SCSS
$custom: #af6fe9;
$custom-light: #ca9af0;
$custom-dark: #000000;
JSON
{
  "hex": "#af6fe9",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 233
  },
  "hsl": {
    "h": 271.475,
    "s": 73.494,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66128,
    "c": 0.1824,
    "h": 306.3
  },
  "luminance": 0.26366
}

Semantic roles & 50–950 ramp

primary
#AF6FE9
secondary
#D9EDC7
accent
#D6106E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF6FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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