#AF5AE6#AF5AE6

#AF5AE6 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.0% C 0.210 H 309.6°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE6
RGBrgb(175, 90, 230)
HSLhsl(276, 74%, 63%)
HSVhsv(276, 61%, 90%)
CMYKcmyk(23.9%, 60.9%, 0%, 9.8%)
CIE-LABlab(54.18, 57.99, -57.38)
CIE-LCHlch(54.18, 81.58, 315.30°)
OKLaboklab(62.99% 0.134 -0.1617)
OKLCHoklch(62.99% 0.21 309.6)
XYZxyz(35.6155, 22.1401, 77.2448)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE6 #91E65A
analogous
#695AE6 #AF5AE6 #E65AD7
triadic
#AF5AE6 #E6AF5A #5AE6AF
tetradic
#AF5AE6 #E6695A #91E65A #5AD7E6
square
#AF5AE6 #E6695A #91E65A #5AD7E6
split-complementary
#AF5AE6 #D7E65A #5AE669
monochromatic
#721AAC #9525DE #AF5AE6 #C98FEE #E3C4F6

Accessibility & contrast

On white

3.87
#AF5AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#AF5AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE6
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE6#FFFFFF#000000##000000
##AF5AE61.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7EEA
Deuteranopia (green-blind)
#4883E3
Tritanopia (blue-blind)
#A77598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ae6;
/* rgb */ color: rgb(175, 90, 230);
/* oklch */ color: oklch(63.0% 0.210 309.6);
Tailwind
colors: {
  custom: {
    50: '#cb8def',
    500: '#af5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae6;
$custom-light: #cb8def;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae6",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 276.429,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62991,
    "c": 0.21004,
    "h": 309.6
  },
  "luminance": 0.22139
}

Semantic roles & 50–950 ramp

primary
#AF5AE6
secondary
#C8E7B5
accent
#D6105E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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