#AF6AEC#AF6AEC

#AF6AEC is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.6% C 0.193 H 306.3°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AF6AEC
RGBrgb(175, 106, 236)
HSLhsl(272, 77%, 67%)
HSVhsv(272, 55%, 93%)
CMYKcmyk(25.8%, 55.1%, 0%, 7.5%)
CIE-LABlab(57.54, 51.27, -55.36)
CIE-LCHlch(57.54, 75.46, 312.80°)
OKLaboklab(65.56% 0.1145 -0.1559)
OKLCHoklch(65.56% 0.193 306.3)
XYZxyz(37.9704, 25.4785, 82.2581)
Luminance0.2548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AEC #A7EC6A
analogous
#6E6AEC #AF6AEC #EC6AE8
triadic
#AF6AEC #ECAF6A #6AECAF
tetradic
#AF6AEC #EC6E6A #A7EC6A #6AE8EC
square
#AF6AEC #EC6E6A #A7EC6A #6AE8EC
split-complementary
#AF6AEC #E8EC6A #6AEC6E
monochromatic
#7319C3 #9234E5 #AF6AEC #CCA0F3 #E9D7FA

Accessibility & contrast

On white

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

On black

6.10
#AF6AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AEC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AEC#FFFFFF#000000##000000
##AF6AEC1.003.456.106.10
#FFFFFF3.451.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C88F0
Deuteranopia (green-blind)
#558BE9
Tritanopia (blue-blind)
#A582A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6aec;
/* rgb */ color: rgb(175, 106, 236);
/* oklch */ color: oklch(65.6% 0.193 306.3);
Tailwind
colors: {
  custom: {
    50: '#ca97f3',
    500: '#af6aec',
    950: '#000000',
  },
}
SCSS
$custom: #af6aec;
$custom-light: #ca97f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af6aec",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 236
  },
  "hsl": {
    "h": 271.846,
    "s": 77.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65559,
    "c": 0.19339,
    "h": 306.3
  },
  "luminance": 0.25478
}

Semantic roles & 50–950 ramp

primary
#AF6AEC
secondary
#D8EEC4
accent
#DA0C6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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