#AF6BE8#AF6BE8

#AF6BE8 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.5% C 0.187 H 307.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AF6BE8
RGBrgb(175, 107, 232)
HSLhsl(273, 73%, 66%)
HSVhsv(273, 54%, 91%)
CMYKcmyk(24.6%, 53.9%, 0%, 9%)
CIE-LABlab(57.52, 49.83, -53.16)
CIE-LCHlch(57.52, 72.87, 313.15°)
OKLaboklab(65.47% 0.113 -0.1494)
OKLCHoklch(65.47% 0.187 307.1)
XYZxyz(37.4994, 25.4560, 79.2663)
Luminance0.2546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BE8 #A4E86B
analogous
#716BE8 #AF6BE8 #E86BE3
triadic
#AF6BE8 #E8AF6B #6BE8AF
tetradic
#AF6BE8 #E8716B #A4E86B #6BE3E8
square
#AF6BE8 #E8716B #A4E86B #6BE3E8
split-complementary
#AF6BE8 #E3E86B #6BE871
monochromatic
#731DBB #9236E0 #AF6BE8 #CCA0F0 #E8D5F8

Accessibility & contrast

On white

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

On black

6.09
#AF6BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BE8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BE8#FFFFFF#000000##000000
##AF6BE81.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4288EC
Deuteranopia (green-blind)
#598BE5
Tritanopia (blue-blind)
#A6829F
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6be8;
/* rgb */ color: rgb(175, 107, 232);
/* oklch */ color: oklch(65.5% 0.187 307.1);
Tailwind
colors: {
  custom: {
    50: '#ca98f0',
    500: '#af6be8',
    950: '#000000',
  },
}
SCSS
$custom: #af6be8;
$custom-light: #ca98f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af6be8",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 232
  },
  "hsl": {
    "h": 272.64,
    "s": 73.099,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65472,
    "c": 0.18736,
    "h": 307.1
  },
  "luminance": 0.25456
}

Semantic roles & 50–950 ramp

primary
#AF6BE8
secondary
#D6ECC3
accent
#D5106A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #AF6BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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