#AF6BEF#AF6BEF

#AF6BEF is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.9% C 0.195 H 305.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF6BEF
RGBrgb(175, 107, 239)
HSLhsl(271, 80%, 68%)
HSVhsv(271, 55%, 94%)
CMYKcmyk(26.8%, 55.2%, 0%, 6.3%)
CIE-LABlab(57.91, 51.44, -56.45)
CIE-LCHlch(57.91, 76.37, 312.34°)
OKLaboklab(65.88% 0.1133 -0.159)
OKLCHoklch(65.88% 0.195 305.5)
XYZxyz(38.5136, 25.8616, 84.6075)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BEF #ABEF6B
analogous
#6D6BEF #AF6BEF #EF6BED
triadic
#AF6BEF #EFAF6B #6BEFAF
tetradic
#AF6BEF #EF6D6B #ABEF6B #6BEDEF
square
#AF6BEF #EF6D6B #ABEF6B #6BEDEF
split-complementary
#AF6BEF #EDEF6B #6BEF6D
monochromatic
#7316CA #9134E9 #AF6BEF #CDA2F5 #EBD9FB

Accessibility & contrast

On white

3.40
#AF6BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#AF6BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BEF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BEF#FFFFFF#000000##000000
##AF6BEF1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B89F3
Deuteranopia (green-blind)
#538BEC
Tritanopia (blue-blind)
#A484A3
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6bef;
/* rgb */ color: rgb(175, 107, 239);
/* oklch */ color: oklch(65.9% 0.195 305.5);
Tailwind
colors: {
  custom: {
    50: '#ca98f5',
    500: '#af6bef',
    950: '#000000',
  },
}
SCSS
$custom: #af6bef;
$custom-light: #ca98f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bef",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 239
  },
  "hsl": {
    "h": 270.909,
    "s": 80.488,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65883,
    "c": 0.19528,
    "h": 305.5
  },
  "luminance": 0.25861
}

Semantic roles & 50–950 ramp

primary
#AF6BEF
secondary
#DAEFC7
accent
#DD0970
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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