#AF6CFC#AF6CFC

#AF6CFC is a light, highly saturated violet. Relative luminance 0.269; OKLCH L 66.8% C 0.209 H 302.6°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF6CFC
RGBrgb(175, 108, 252)
HSLhsl(268, 96%, 71%)
HSVhsv(268, 57%, 99%)
CMYKcmyk(30.6%, 57.1%, 0%, 1.2%)
CIE-LABlab(58.85, 53.95, -62.14)
CIE-LCHlch(58.85, 82.29, 310.96°)
OKLaboklab(66.82% 0.1123 -0.1757)
OKLCHoklch(66.82% 0.209 302.6)
XYZxyz(40.6084, 26.8673, 95.1231)
Luminance0.2687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CFC #B9FC6C
analogous
#6C71FC #AF6CFC #F76CFC
triadic
#AF6CFC #FCAF6C #6CFCAF
tetradic
#AF6CFC #FC6C71 #B9FC6C #6CFCF7
square
#AF6CFC #FC6C71 #B9FC6C #6CFCF7
split-complementary
#AF6CFC #FCF76C #71FC6C
monochromatic
#6F05E9 #8E30FB #AF6CFC #D0A8FD #EFE1FE

Accessibility & contrast

On white

3.29
#AF6CFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF6CFC#FFFFFF#000000##000000
##AF6CFC1.003.296.376.37
#FFFFFF3.291.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8CFF
Deuteranopia (green-blind)
#488DF9
Tritanopia (blue-blind)
#A089AA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6cfc;
/* rgb */ color: rgb(175, 108, 252);
/* oklch */ color: oklch(66.8% 0.209 302.6);
Tailwind
colors: {
  custom: {
    50: '#cb99fe',
    500: '#af6cfc',
    950: '#000000',
  },
}
SCSS
$custom: #af6cfc;
$custom-light: #cb99fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cfc",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 252
  },
  "hsl": {
    "h": 267.917,
    "s": 96,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66818,
    "c": 0.20855,
    "h": 302.6
  },
  "luminance": 0.26867
}

Semantic roles & 50–950 ramp

primary
#AF6CFC
secondary
#E3F5CE
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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