#AF6DFE#AF6DFE

#AF6DFE is a light, highly saturated violet. Relative luminance 0.272; OKLCH L 67.1% C 0.209 H 302.0°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF6DFE
RGBrgb(175, 109, 254)
HSLhsl(267, 99%, 71%)
HSVhsv(267, 57%, 100%)
CMYKcmyk(31.1%, 57.1%, 0%, 0.4%)
CIE-LABlab(59.17, 53.90, -62.74)
CIE-LCHlch(59.17, 82.72, 310.67°)
OKLaboklab(67.08% 0.1111 -0.1775)
OKLCHoklch(67.08% 0.209 302)
XYZxyz(41.0331, 27.2069, 96.8364)
Luminance0.2721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DFE #BCFE6D
analogous
#6D73FE #AF6DFE #F76DFE
triadic
#AF6DFE #FEAF6D #6DFEAF
tetradic
#AF6DFE #FE6D73 #BCFE6D #6DFEF7
square
#AF6DFE #FE6D73 #BCFE6D #6DFEF7
split-complementary
#AF6DFE #FEF76D #73FE6D
monochromatic
#6E02EF #8E30FE #AF6DFE #D0AAFE #EEE1FF

Accessibility & contrast

On white

3.26
#AF6DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AF6DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DFE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DFE#FFFFFF#000000##000000
##AF6DFE1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A8DFF
Deuteranopia (green-blind)
#478EFB
Tritanopia (blue-blind)
#A08AAB
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6dfe;
/* rgb */ color: rgb(175, 109, 254);
/* oklch */ color: oklch(67.1% 0.209 302.0);
Tailwind
colors: {
  custom: {
    50: '#cb99ff',
    500: '#af6dfe',
    950: '#000000',
  },
}
SCSS
$custom: #af6dfe;
$custom-light: #cb99ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6dfe",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 254
  },
  "hsl": {
    "h": 267.31,
    "s": 98.639,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67085,
    "c": 0.20941,
    "h": 302
  },
  "luminance": 0.27207
}

Semantic roles & 50–950 ramp

primary
#AF6DFE
secondary
#E5F6D0
accent
#E6007D
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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