#AF6DE2#AF6DE2

#AF6DE2 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.4% C 0.177 H 308.3°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF6DE2
RGBrgb(175, 109, 226)
HSLhsl(274, 67%, 66%)
HSVhsv(274, 52%, 89%)
CMYKcmyk(22.6%, 51.8%, 0%, 11.4%)
CIE-LABlab(57.60, 47.42, -49.67)
CIE-LCHlch(57.60, 68.67, 313.67°)
OKLaboklab(65.43% 0.11 -0.1393)
OKLCHoklch(65.43% 0.177 308.3)
XYZxyz(36.8726, 25.5427, 74.9245)
Luminance0.2554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DE2 #A0E26D
analogous
#746DE2 #AF6DE2 #E26DDA
triadic
#AF6DE2 #E2AF6D #6DE2AF
tetradic
#AF6DE2 #E2746D #A0E26D #6DDAE2
square
#AF6DE2 #E2746D #A0E26D #6DDAE2
split-complementary
#AF6DE2 #DAE26D #6DE274
monochromatic
#7323B1 #933AD8 #AF6DE2 #CBA0EC #E7D3F6

Accessibility & contrast

On white

3.44
#AF6DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#AF6DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DE2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DE2#FFFFFF#000000##000000
##AF6DE21.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B88E6
Deuteranopia (green-blind)
#608BDF
Tritanopia (blue-blind)
#A8819D
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6de2;
/* rgb */ color: rgb(175, 109, 226);
/* oklch */ color: oklch(65.4% 0.177 308.3);
Tailwind
colors: {
  custom: {
    50: '#c999eb',
    500: '#af6de2',
    950: '#000000',
  },
}
SCSS
$custom: #af6de2;
$custom-light: #c999eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6de2",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 226
  },
  "hsl": {
    "h": 273.846,
    "s": 66.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65429,
    "c": 0.17746,
    "h": 308.3
  },
  "luminance": 0.25542
}

Semantic roles & 50–950 ramp

primary
#AF6DE2
secondary
#D3E9C2
accent
#CF1767
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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