#AF6CF8#AF6CF8

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

Color values

HEX#AF6CF8
RGBrgb(175, 108, 248)
HSLhsl(269, 91%, 70%)
HSVhsv(269, 56%, 97%)
CMYKcmyk(29.4%, 56.5%, 0%, 2.7%)
CIE-LABlab(58.62, 53.01, -60.30)
CIE-LCHlch(58.62, 80.29, 311.32°)
OKLaboklab(66.57% 0.1123 -0.1703)
OKLCHoklch(66.57% 0.204 303.4)
XYZxyz(39.9812, 26.6165, 91.8199)
Luminance0.2662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CF8 #B5F86C
analogous
#6C6FF8 #AF6CF8 #F56CF8
triadic
#AF6CF8 #F8AF6C #6CF8AF
tetradic
#AF6CF8 #F86C6F #B5F86C #6CF8F5
square
#AF6CF8 #F86C6F #B5F86C #6CF8F5
split-complementary
#AF6CF8 #F8F56C #6FF86C
monochromatic
#700BDF #8F32F5 #AF6CF8 #CFA6FB #EFE1FE

Accessibility & contrast

On white

3.32
#AF6CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF6CF8#FFFFFF#000000##000000
##AF6CF81.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#318BFD
Deuteranopia (green-blind)
#4C8DF5
Tritanopia (blue-blind)
#A288A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6cf8;
/* rgb */ color: rgb(175, 108, 248);
/* oklch */ color: oklch(66.6% 0.204 303.4);
Tailwind
colors: {
  custom: {
    50: '#cb98fb',
    500: '#af6cf8',
    950: '#000000',
  },
}
SCSS
$custom: #af6cf8;
$custom-light: #cb98fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cf8",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 248
  },
  "hsl": {
    "h": 268.714,
    "s": 90.909,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66571,
    "c": 0.20402,
    "h": 303.4
  },
  "luminance": 0.26616
}

Semantic roles & 50–950 ramp

primary
#AF6CF8
secondary
#E1F4CC
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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