#AF6AEB#AF6AEB

#AF6AEB is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.5% C 0.192 H 306.5°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF6AEB
RGBrgb(175, 106, 235)
HSLhsl(272, 76%, 67%)
HSVhsv(272, 55%, 92%)
CMYKcmyk(25.5%, 54.9%, 0%, 7.8%)
CIE-LABlab(57.48, 51.04, -54.89)
CIE-LCHlch(57.48, 74.96, 312.92°)
OKLaboklab(65.5% 0.1144 -0.1545)
OKLCHoklch(65.5% 0.192 306.5)
XYZxyz(37.8255, 25.4205, 81.4951)
Luminance0.2542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AEB #A6EB6A
analogous
#6F6AEB #AF6AEB #EB6AE6
triadic
#AF6AEB #EBAF6A #6AEBAF
tetradic
#AF6AEB #EB6F6A #A6EB6A #6AE6EB
square
#AF6AEB #EB6F6A #A6EB6A #6AE6EB
split-complementary
#AF6AEB #E6EB6A #6AEB6F
monochromatic
#731AC1 #9234E4 #AF6AEB #CCA0F2 #E9D6F9

Accessibility & contrast

On white

3.45
#AF6AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#AF6AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AEB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AEB#FFFFFF#000000##000000
##AF6AEB1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D88EF
Deuteranopia (green-blind)
#568BE8
Tritanopia (blue-blind)
#A582A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6aeb;
/* rgb */ color: rgb(175, 106, 235);
/* oklch */ color: oklch(65.5% 0.192 306.5);
Tailwind
colors: {
  custom: {
    50: '#ca97f2',
    500: '#af6aeb',
    950: '#000000',
  },
}
SCSS
$custom: #af6aeb;
$custom-light: #ca97f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af6aeb",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 235
  },
  "hsl": {
    "h": 272.093,
    "s": 76.331,
    "l": 66.863
  },
  "oklch": {
    "l": 0.655,
    "c": 0.19225,
    "h": 306.5
  },
  "luminance": 0.2542
}

Semantic roles & 50–950 ramp

primary
#AF6AEB
secondary
#D7EDC4
accent
#D90D6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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