#AF6CE8#AF6CE8

#AF6CE8 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.6% C 0.186 H 307.0°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF6CE8
RGBrgb(175, 108, 232)
HSLhsl(272, 73%, 67%)
HSVhsv(272, 53%, 91%)
CMYKcmyk(24.6%, 53.4%, 0%, 9%)
CIE-LABlab(57.72, 49.31, -52.84)
CIE-LCHlch(57.72, 72.27, 313.02°)
OKLaboklab(65.62% 0.1117 -0.1485)
OKLCHoklch(65.62% 0.186 307)
XYZxyz(37.6043, 25.6657, 79.3012)
Luminance0.2566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CE8 #A5E86C
analogous
#716CE8 #AF6CE8 #E86CE3
triadic
#AF6CE8 #E8AF6C #6CE8AF
tetradic
#AF6CE8 #E8716C #A5E86C #6CE3E8
square
#AF6CE8 #E8716C #A5E86C #6CE3E8
split-complementary
#AF6CE8 #E3E86C #6CE871
monochromatic
#731DBC #9237E0 #AF6CE8 #CCA1F0 #E9D6F9

Accessibility & contrast

On white

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

On black

6.13
#AF6CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CE8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CE8#FFFFFF#000000##000000
##AF6CE81.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4488EC
Deuteranopia (green-blind)
#5A8BE5
Tritanopia (blue-blind)
#A682A0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6ce8;
/* rgb */ color: rgb(175, 108, 232);
/* oklch */ color: oklch(65.6% 0.186 307.0);
Tailwind
colors: {
  custom: {
    50: '#ca98f0',
    500: '#af6ce8',
    950: '#000000',
  },
}
SCSS
$custom: #af6ce8;
$custom-light: #ca98f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ce8",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 232
  },
  "hsl": {
    "h": 272.419,
    "s": 72.941,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6562,
    "c": 0.18584,
    "h": 307
  },
  "luminance": 0.25665
}

Semantic roles & 50–950 ramp

primary
#AF6CE8
secondary
#D6ECC4
accent
#D5106B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #AF6CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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