#AF6AFE#AF6AFE

#AF6AFE is a light, highly saturated violet. Relative luminance 0.266; OKLCH L 66.7% C 0.214 H 302.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#AF6AFE
RGBrgb(175, 106, 254)
HSLhsl(268, 99%, 71%)
HSVhsv(268, 58%, 100%)
CMYKcmyk(31.1%, 58.3%, 0%, 0.4%)
CIE-LABlab(58.58, 55.45, -63.68)
CIE-LCHlch(58.58, 84.44, 311.05°)
OKLaboklab(66.66% 0.1147 -0.1802)
OKLCHoklch(66.66% 0.214 302.5)
XYZxyz(40.7185, 26.5777, 96.7316)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AFE #B9FE6A
analogous
#6A6FFE #AF6AFE #F96AFE
triadic
#AF6AFE #FEAF6A #6AFEAF
tetradic
#AF6AFE #FE6A6F #B9FE6A #6AFEF9
square
#AF6AFE #FE6A6F #B9FE6A #6AFEF9
split-complementary
#AF6AFE #FEF96A #6FFE6A
monochromatic
#6F02EC #8E2DFE #AF6AFE #D0A7FE #EFE1FF

Accessibility & contrast

On white

3.33
#AF6AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#AF6AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AFE
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AFE#FFFFFF#000000##000000
##AF6AFE1.003.336.326.32
#FFFFFF3.331.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F8CFF
Deuteranopia (green-blind)
#438CFB
Tritanopia (blue-blind)
#A088AA
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6afe;
/* rgb */ color: rgb(175, 106, 254);
/* oklch */ color: oklch(66.7% 0.214 302.5);
Tailwind
colors: {
  custom: {
    50: '#cb97ff',
    500: '#af6afe',
    950: '#000000',
  },
}
SCSS
$custom: #af6afe;
$custom-light: #cb97ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6afe",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 267.973,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66658,
    "c": 0.21363,
    "h": 302.5
  },
  "luminance": 0.26578
}

Semantic roles & 50–950 ramp

primary
#AF6AFE
secondary
#E3F6CE
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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