#AF6FF2#AF6FF2

#AF6FF2 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.7% C 0.193 H 304.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF6FF2
RGBrgb(175, 111, 242)
HSLhsl(269, 83%, 69%)
HSVhsv(269, 54%, 95%)
CMYKcmyk(27.7%, 54.1%, 0%, 5.1%)
CIE-LABlab(58.88, 50.03, -56.56)
CIE-LCHlch(58.88, 75.52, 311.49°)
OKLaboklab(66.65% 0.1084 -0.1594)
OKLCHoklch(66.65% 0.193 304.2)
XYZxyz(39.3871, 26.8938, 87.1032)
Luminance0.2689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FF2 #B2F26F
analogous
#6F71F2 #AF6FF2 #F06FF2
triadic
#AF6FF2 #F2AF6F #6FF2AF
tetradic
#AF6FF2 #F26F71 #B2F26F #6FF2F0
square
#AF6FF2 #F26F71 #B2F26F #6FF2F0
split-complementary
#AF6FF2 #F2F06F #71F26F
monochromatic
#7113D4 #9037ED #AF6FF2 #CEA7F7 #EDDFFC

Accessibility & contrast

On white

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

On black

6.38
#AF6FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FF2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FF2#FFFFFF#000000##000000
##AF6FF21.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#408CF6
Deuteranopia (green-blind)
#558EEF
Tritanopia (blue-blind)
#A388A6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6ff2;
/* rgb */ color: rgb(175, 111, 242);
/* oklch */ color: oklch(66.7% 0.193 304.2);
Tailwind
colors: {
  custom: {
    50: '#ca9af7',
    500: '#af6ff2',
    950: '#000000',
  },
}
SCSS
$custom: #af6ff2;
$custom-light: #ca9af7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ff2",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 242
  },
  "hsl": {
    "h": 269.313,
    "s": 83.439,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66651,
    "c": 0.19277,
    "h": 304.2
  },
  "luminance": 0.26894
}

Semantic roles & 50–950 ramp

primary
#AF6FF2
secondary
#DFF1CB
accent
#E00675
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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