#AF6AEF#AF6AEF

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

Color values

HEX#AF6AEF
RGBrgb(175, 106, 239)
HSLhsl(271, 81%, 68%)
HSVhsv(271, 56%, 94%)
CMYKcmyk(26.8%, 55.6%, 0%, 6.3%)
CIE-LABlab(57.71, 51.96, -56.76)
CIE-LCHlch(57.71, 76.95, 312.47°)
OKLaboklab(65.74% 0.1146 -0.16)
OKLCHoklch(65.74% 0.197 305.6)
XYZxyz(38.4099, 25.6543, 84.5729)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AEF #AAEF6A
analogous
#6D6AEF #AF6AEF #EF6AEC
triadic
#AF6AEF #EFAF6A #6AEFAF
tetradic
#AF6AEF #EF6D6A #AAEF6A #6AECEF
square
#AF6AEF #EF6D6A #AAEF6A #6AECEF
split-complementary
#AF6AEF #ECEF6A #6AEF6D
monochromatic
#7316C9 #9133E9 #AF6AEF #CDA1F5 #EAD9FB

Accessibility & contrast

On white

3.43
#AF6AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF6AEF#FFFFFF#000000##000000
##AF6AEF1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3888F3
Deuteranopia (green-blind)
#528BEC
Tritanopia (blue-blind)
#A483A3
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6aef;
/* rgb */ color: rgb(175, 106, 239);
/* oklch */ color: oklch(65.7% 0.197 305.6);
Tailwind
colors: {
  custom: {
    50: '#ca97f5',
    500: '#af6aef',
    950: '#000000',
  },
}
SCSS
$custom: #af6aef;
$custom-light: #ca97f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af6aef",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 271.128,
    "s": 80.606,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65737,
    "c": 0.19676,
    "h": 305.6
  },
  "luminance": 0.25654
}

Semantic roles & 50–950 ramp

primary
#AF6AEF
secondary
#DAEFC6
accent
#DD096F
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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