#AF5AE8#AF5AE8

#AF5AE8 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.1% C 0.212 H 309.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE8
RGBrgb(175, 90, 232)
HSLhsl(276, 76%, 63%)
HSVhsv(276, 61%, 91%)
CMYKcmyk(24.6%, 61.2%, 0%, 9%)
CIE-LABlab(54.29, 58.43, -58.31)
CIE-LCHlch(54.29, 82.55, 315.06°)
OKLaboklab(63.12% 0.134 -0.1645)
OKLCHoklch(63.12% 0.212 309.2)
XYZxyz(35.8980, 22.2531, 78.7325)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE8 #93E85A
analogous
#685AE8 #AF5AE8 #E85ADA
triadic
#AF5AE8 #E8AF5A #5AE8AF
tetradic
#AF5AE8 #E8685A #93E85A #5ADAE8
square
#AF5AE8 #E8685A #93E85A #5ADAE8
split-complementary
#AF5AE8 #DAE85A #5AE868
monochromatic
#7318AF #9524E1 #AF5AE8 #C990EF #E3C5F7

Accessibility & contrast

On white

3.85
#AF5AE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AF5AE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE8#FFFFFF#000000##000000
##AF5AE81.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#157EEC
Deuteranopia (green-blind)
#4683E5
Tritanopia (blue-blind)
#A77699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ae8;
/* rgb */ color: rgb(175, 90, 232);
/* oklch */ color: oklch(63.1% 0.212 309.2);
Tailwind
colors: {
  custom: {
    50: '#cb8df0',
    500: '#af5ae8',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae8;
$custom-light: #cb8df0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae8",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 232
  },
  "hsl": {
    "h": 275.915,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63116,
    "c": 0.21213,
    "h": 309.2
  },
  "luminance": 0.22252
}

Semantic roles & 50–950 ramp

primary
#AF5AE8
secondary
#CAE8B5
accent
#D80E5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF5AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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