#AF6DF2#AF6DF2

#AF6DF2 is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.4% C 0.196 H 304.5°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AF6DF2
RGBrgb(175, 109, 242)
HSLhsl(270, 84%, 69%)
HSVhsv(270, 55%, 95%)
CMYKcmyk(27.7%, 55%, 0%, 5.1%)
CIE-LABlab(58.47, 51.08, -57.21)
CIE-LCHlch(58.47, 76.70, 311.76°)
OKLaboklab(66.36% 0.1109 -0.1613)
OKLCHoklch(66.36% 0.196 304.5)
XYZxyz(39.1714, 26.4622, 87.0313)
Luminance0.2646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DF2 #B0F26D
analogous
#6D6EF2 #AF6DF2 #F16DF2
triadic
#AF6DF2 #F2AF6D #6DF2AF
tetradic
#AF6DF2 #F26D6E #B0F26D #6DF2F1
square
#AF6DF2 #F26D6E #B0F26D #6DF2F1
split-complementary
#AF6DF2 #F2F16D #6EF26D
monochromatic
#7213D2 #9035ED #AF6DF2 #CEA5F7 #EDDDFC

Accessibility & contrast

On white

3.34
#AF6DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#AF6DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DF2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DF2#FFFFFF#000000##000000
##AF6DF21.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8BF6
Deuteranopia (green-blind)
#538DEF
Tritanopia (blue-blind)
#A386A5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6df2;
/* rgb */ color: rgb(175, 109, 242);
/* oklch */ color: oklch(66.4% 0.196 304.5);
Tailwind
colors: {
  custom: {
    50: '#ca99f7',
    500: '#af6df2',
    950: '#000000',
  },
}
SCSS
$custom: #af6df2;
$custom-light: #ca99f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6df2",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 242
  },
  "hsl": {
    "h": 269.774,
    "s": 83.648,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66355,
    "c": 0.19574,
    "h": 304.5
  },
  "luminance": 0.26462
}

Semantic roles & 50–950 ramp

primary
#AF6DF2
secondary
#DEF1CA
accent
#E00574
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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