#AF6DF8#AF6DF8

#AF6DF8 is a light, highly saturated violet. Relative luminance 0.268; OKLCH L 66.7% C 0.203 H 303.2°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF6DF8
RGBrgb(175, 109, 248)
HSLhsl(268, 91%, 70%)
HSVhsv(268, 56%, 97%)
CMYKcmyk(29.4%, 56%, 0%, 2.7%)
CIE-LABlab(58.82, 52.49, -59.99)
CIE-LCHlch(58.82, 79.71, 311.19°)
OKLaboklab(66.72% 0.1111 -0.1694)
OKLCHoklch(66.72% 0.203 303.2)
XYZxyz(40.0873, 26.8286, 91.8553)
Luminance0.2683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DF8 #B6F86D
analogous
#6D71F8 #AF6DF8 #F46DF8
triadic
#AF6DF8 #F8AF6D #6DF8AF
tetradic
#AF6DF8 #F86D71 #B6F86D #6DF8F4
square
#AF6DF8 #F86D71 #B6F86D #6DF8F4
split-complementary
#AF6DF8 #F8F46D #71F86D
monochromatic
#700BE0 #8F33F5 #AF6DF8 #CFA7FB #EFE2FE

Accessibility & contrast

On white

3.30
#AF6DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#AF6DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DF8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DF8#FFFFFF#000000##000000
##AF6DF81.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#348CFD
Deuteranopia (green-blind)
#4D8DF5
Tritanopia (blue-blind)
#A188A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6df8;
/* rgb */ color: rgb(175, 109, 248);
/* oklch */ color: oklch(66.7% 0.203 303.2);
Tailwind
colors: {
  custom: {
    50: '#cb99fb',
    500: '#af6df8',
    950: '#000000',
  },
}
SCSS
$custom: #af6df8;
$custom-light: #cb99fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6df8",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 248
  },
  "hsl": {
    "h": 268.489,
    "s": 90.85,
    "l": 70
  },
  "oklch": {
    "l": 0.66716,
    "c": 0.20258,
    "h": 303.2
  },
  "luminance": 0.26829
}

Semantic roles & 50–950 ramp

primary
#AF6DF8
secondary
#E1F4CD
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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