#AF6BEE#AF6BEE

#AF6BEE is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.8% C 0.194 H 305.7°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF6BEE
RGBrgb(175, 107, 238)
HSLhsl(271, 79%, 68%)
HSVhsv(271, 55%, 93%)
CMYKcmyk(26.5%, 55%, 0%, 6.7%)
CIE-LABlab(57.85, 51.21, -55.98)
CIE-LCHlch(57.85, 75.87, 312.45°)
OKLaboklab(65.82% 0.1133 -0.1577)
OKLCHoklch(65.82% 0.194 305.7)
XYZxyz(38.3662, 25.8027, 83.8316)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BEE #AAEE6B
analogous
#6D6BEE #AF6BEE #EE6BEC
triadic
#AF6BEE #EEAF6B #6BEEAF
tetradic
#AF6BEE #EE6D6B #AAEE6B #6BECEE
square
#AF6BEE #EE6D6B #AAEE6B #6BECEE
split-complementary
#AF6BEE #ECEE6B #6BEE6D
monochromatic
#7317C8 #9134E8 #AF6BEE #CDA2F4 #EAD9FB

Accessibility & contrast

On white

3.41
#AF6BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#AF6BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BEE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BEE#FFFFFF#000000##000000
##AF6BEE1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F2
Deuteranopia (green-blind)
#548BEB
Tritanopia (blue-blind)
#A584A2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6bee;
/* rgb */ color: rgb(175, 107, 238);
/* oklch */ color: oklch(65.8% 0.194 305.7);
Tailwind
colors: {
  custom: {
    50: '#ca98f4',
    500: '#af6bee',
    950: '#000000',
  },
}
SCSS
$custom: #af6bee;
$custom-light: #ca98f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bee",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 238
  },
  "hsl": {
    "h": 271.145,
    "s": 79.394,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65823,
    "c": 0.19415,
    "h": 305.7
  },
  "luminance": 0.25802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF6BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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