#AF6CF2#AF6CF2

#AF6CF2 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.2% C 0.197 H 304.7°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AF6CF2
RGBrgb(175, 108, 242)
HSLhsl(270, 84%, 69%)
HSVhsv(270, 55%, 95%)
CMYKcmyk(27.7%, 55.4%, 0%, 5.1%)
CIE-LABlab(58.27, 51.61, -57.53)
CIE-LCHlch(58.27, 77.28, 311.90°)
OKLaboklab(66.21% 0.1122 -0.1622)
OKLCHoklch(66.21% 0.197 304.7)
XYZxyz(39.0653, 26.2501, 86.9959)
Luminance0.2625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CF2 #AFF26C
analogous
#6C6CF2 #AF6CF2 #F26CF2
triadic
#AF6CF2 #F2AF6C #6CF2AF
tetradic
#AF6CF2 #F26C6C #AFF26C #6CF2F2
square
#AF6CF2 #F26C6C #AFF26C #6CF2F2
split-complementary
#AF6CF2 #F2F26C #6CF26C
monochromatic
#7212D1 #9034ED #AF6CF2 #CEA4F7 #ECDCFC

Accessibility & contrast

On white

3.36
#AF6CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#AF6CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CF2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CF2#FFFFFF#000000##000000
##AF6CF21.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#528CEF
Tritanopia (blue-blind)
#A386A5
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6cf2;
/* rgb */ color: rgb(175, 108, 242);
/* oklch */ color: oklch(66.2% 0.197 304.7);
Tailwind
colors: {
  custom: {
    50: '#ca98f7',
    500: '#af6cf2',
    950: '#000000',
  },
}
SCSS
$custom: #af6cf2;
$custom-light: #ca98f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cf2",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 242
  },
  "hsl": {
    "h": 270,
    "s": 83.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66208,
    "c": 0.19721,
    "h": 304.7
  },
  "luminance": 0.2625
}

Semantic roles & 50–950 ramp

primary
#AF6CF2
secondary
#DDF1C9
accent
#E00573
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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