#AF6EE2#AF6EE2

#AF6EE2 is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.6% C 0.176 H 308.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AF6EE2
RGBrgb(175, 110, 226)
HSLhsl(274, 67%, 66%)
HSVhsv(274, 51%, 89%)
CMYKcmyk(22.6%, 51.3%, 0%, 11.4%)
CIE-LABlab(57.81, 46.89, -49.35)
CIE-LCHlch(57.81, 68.07, 313.54°)
OKLaboklab(65.58% 0.1087 -0.1383)
OKLCHoklch(65.58% 0.176 308.2)
XYZxyz(36.9799, 25.7573, 74.9603)
Luminance0.2576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EE2 #A1E26E
analogous
#756EE2 #AF6EE2 #E26EDB
triadic
#AF6EE2 #E2AF6E #6EE2AF
tetradic
#AF6EE2 #E2756E #A1E26E #6EDBE2
square
#AF6EE2 #E2756E #A1E26E #6EDBE2
split-complementary
#AF6EE2 #DBE26E #6EE275
monochromatic
#7324B2 #933BD8 #AF6EE2 #CBA1EC #E7D4F6

Accessibility & contrast

On white

3.41
#AF6EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#AF6EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6EE2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6EE2#FFFFFF#000000##000000
##AF6EE21.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D88E6
Deuteranopia (green-blind)
#618CDF
Tritanopia (blue-blind)
#A8829E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6ee2;
/* rgb */ color: rgb(175, 110, 226);
/* oklch */ color: oklch(65.6% 0.176 308.2);
Tailwind
colors: {
  custom: {
    50: '#c999eb',
    500: '#af6ee2',
    950: '#000000',
  },
}
SCSS
$custom: #af6ee2;
$custom-light: #c999eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ee2",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 226
  },
  "hsl": {
    "h": 273.621,
    "s": 66.667,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65581,
    "c": 0.17589,
    "h": 308.2
  },
  "luminance": 0.25757
}

Semantic roles & 50–950 ramp

primary
#AF6EE2
secondary
#D4E9C3
accent
#CF1768
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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