#AF5AE9#AF5AE9

#AF5AE9 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.2% C 0.213 H 308.9°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE9
RGBrgb(175, 90, 233)
HSLhsl(276, 76%, 63%)
HSVhsv(276, 61%, 91%)
CMYKcmyk(24.9%, 61.4%, 0%, 8.6%)
CIE-LABlab(54.35, 58.65, -58.78)
CIE-LCHlch(54.35, 83.03, 314.93°)
OKLaboklab(63.18% 0.134 -0.1658)
OKLCHoklch(63.18% 0.213 308.9)
XYZxyz(36.0404, 22.3101, 79.4827)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE9 #94E95A
analogous
#675AE9 #AF5AE9 #E95ADC
triadic
#AF5AE9 #E9AF5A #5AE9AF
tetradic
#AF5AE9 #E9675A #94E95A #5ADCE9
square
#AF5AE9 #E9675A #94E95A #5ADCE9
split-complementary
#AF5AE9 #DCE95A #5AE967
monochromatic
#7318B1 #9524E2 #AF5AE9 #C990F0 #E3C6F7

Accessibility & contrast

On white

3.84
#AF5AE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AF5AE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE9
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE9#FFFFFF#000000##000000
##AF5AE91.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#127EED
Deuteranopia (green-blind)
#4583E6
Tritanopia (blue-blind)
#A77699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ae9;
/* rgb */ color: rgb(175, 90, 233);
/* oklch */ color: oklch(63.2% 0.213 308.9);
Tailwind
colors: {
  custom: {
    50: '#cb8df1',
    500: '#af5ae9',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae9;
$custom-light: #cb8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae9",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 233
  },
  "hsl": {
    "h": 275.664,
    "s": 76.471,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63178,
    "c": 0.21316,
    "h": 308.9
  },
  "luminance": 0.22309
}

Semantic roles & 50–950 ramp

primary
#AF5AE9
secondary
#CBE9B6
accent
#D90D60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF5AE9

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

Preview Lab → · Contrast checker → · Palette generator →

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