#AF6AF7#AF6AF7

#AF6AF7 is a light, highly saturated violet. Relative luminance 0.261; OKLCH L 66.2% C 0.206 H 303.9°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF6AF7
RGBrgb(175, 106, 247)
HSLhsl(269, 90%, 69%)
HSVhsv(269, 57%, 97%)
CMYKcmyk(29.1%, 57.1%, 0%, 3.1%)
CIE-LABlab(58.17, 53.81, -60.47)
CIE-LCHlch(58.17, 80.95, 311.67°)
OKLaboklab(66.22% 0.1147 -0.1708)
OKLCHoklch(66.22% 0.206 303.9)
XYZxyz(39.6180, 26.1375, 90.9355)
Luminance0.2614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AF7 #B2F76A
analogous
#6A6CF7 #AF6AF7 #F66AF7
triadic
#AF6AF7 #F7AF6A #6AF7AF
tetradic
#AF6AF7 #F76A6C #B2F76A #6AF7F6
square
#AF6AF7 #F76A6C #B2F76A #6AF7F6
split-complementary
#AF6AF7 #F7F66A #6CF76A
monochromatic
#710CDB #9030F4 #AF6AF7 #CEA4FA #EDDEFD

Accessibility & contrast

On white

3.37
#AF6AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#AF6AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AF7
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AF7#FFFFFF#000000##000000
##AF6AF71.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8AFC
Deuteranopia (green-blind)
#4B8CF4
Tritanopia (blue-blind)
#A286A7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6af7;
/* rgb */ color: rgb(175, 106, 247);
/* oklch */ color: oklch(66.2% 0.206 303.9);
Tailwind
colors: {
  custom: {
    50: '#cb97fa',
    500: '#af6af7',
    950: '#000000',
  },
}
SCSS
$custom: #af6af7;
$custom-light: #cb97fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6af7",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 247
  },
  "hsl": {
    "h": 269.362,
    "s": 89.809,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66223,
    "c": 0.20576,
    "h": 303.9
  },
  "luminance": 0.26137
}

Semantic roles & 50–950 ramp

primary
#AF6AF7
secondary
#DFF3CA
accent
#E60075
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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