#AF6CEB#AF6CEB

#AF6CEB is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.8% C 0.189 H 306.2°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF6CEB
RGBrgb(175, 108, 235)
HSLhsl(272, 76%, 67%)
HSVhsv(272, 54%, 92%)
CMYKcmyk(25.5%, 54%, 0%, 7.8%)
CIE-LABlab(57.88, 49.99, -54.26)
CIE-LCHlch(57.88, 73.78, 312.66°)
OKLaboklab(65.79% 0.1119 -0.1526)
OKLCHoklch(65.79% 0.189 306.2)
XYZxyz(38.0340, 25.8376, 81.5646)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CEB #A8EB6C
analogous
#706CEB #AF6CEB #EB6CE7
triadic
#AF6CEB #EBAF6C #6CEBAF
tetradic
#AF6CEB #EB706C #A8EB6C #6CE7EB
square
#AF6CEB #EB706C #A8EB6C #6CE7EB
split-complementary
#AF6CEB #E7EB6C #6CEB70
monochromatic
#731AC2 #9236E4 #AF6CEB #CCA2F2 #EAD8FA

Accessibility & contrast

On white

3.41
#AF6CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#AF6CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CEB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CEB#FFFFFF#000000##000000
##AF6CEB1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4189EF
Deuteranopia (green-blind)
#588CE8
Tritanopia (blue-blind)
#A583A1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6ceb;
/* rgb */ color: rgb(175, 108, 235);
/* oklch */ color: oklch(65.8% 0.189 306.2);
Tailwind
colors: {
  custom: {
    50: '#ca98f2',
    500: '#af6ceb',
    950: '#000000',
  },
}
SCSS
$custom: #af6ceb;
$custom-light: #ca98f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ceb",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 271.654,
    "s": 76.048,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65794,
    "c": 0.18926,
    "h": 306.2
  },
  "luminance": 0.25837
}

Semantic roles & 50–950 ramp

primary
#AF6CEB
secondary
#D8EDC5
accent
#D80D6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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