#AF6DFC#AF6DFC

#AF6DFC is a light, highly saturated violet. Relative luminance 0.271; OKLCH L 67.0% C 0.207 H 302.4°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AF6DFC
RGBrgb(175, 109, 252)
HSLhsl(268, 96%, 71%)
HSVhsv(268, 57%, 99%)
CMYKcmyk(30.6%, 56.7%, 0%, 1.2%)
CIE-LABlab(59.05, 53.43, -61.82)
CIE-LCHlch(59.05, 81.71, 310.83°)
OKLaboklab(66.96% 0.1111 -0.1748)
OKLCHoklch(66.96% 0.207 302.4)
XYZxyz(40.7145, 27.0795, 95.1585)
Luminance0.2708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DFC #BAFC6D
analogous
#6D72FC #AF6DFC #F66DFC
triadic
#AF6DFC #FCAF6D #6DFCAF
tetradic
#AF6DFC #FC6D72 #BAFC6D #6DFCF6
square
#AF6DFC #FC6D72 #BAFC6D #6DFCF6
split-complementary
#AF6DFC #FCF66D #72FC6D
monochromatic
#6E05EA #8E31FB #AF6DFC #D0A9FD #EFE1FE

Accessibility & contrast

On white

3.27
#AF6DFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AF6DFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DFC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DFC#FFFFFF#000000##000000
##AF6DFC1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8DFF
Deuteranopia (green-blind)
#498EF9
Tritanopia (blue-blind)
#A08AAA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6dfc;
/* rgb */ color: rgb(175, 109, 252);
/* oklch */ color: oklch(67.0% 0.207 302.4);
Tailwind
colors: {
  custom: {
    50: '#cb99fe',
    500: '#af6dfc',
    950: '#000000',
  },
}
SCSS
$custom: #af6dfc;
$custom-light: #cb99fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af6dfc",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 252
  },
  "hsl": {
    "h": 267.692,
    "s": 95.973,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66961,
    "c": 0.20713,
    "h": 302.4
  },
  "luminance": 0.2708
}

Semantic roles & 50–950 ramp

primary
#AF6DFC
secondary
#E4F6CF
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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