#AF5AED#AF5AED

#AF5AED is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.4% C 0.217 H 308.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5AED
RGBrgb(175, 90, 237)
HSLhsl(275, 80%, 64%)
HSVhsv(275, 62%, 93%)
CMYKcmyk(26.2%, 62%, 0%, 7.1%)
CIE-LABlab(54.60, 59.53, -60.63)
CIE-LCHlch(54.60, 84.97, 314.47°)
OKLaboklab(63.43% 0.1338 -0.1713)
OKLCHoklch(63.43% 0.217 308)
XYZxyz(36.6183, 22.5412, 82.5262)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AED #98ED5A
analogous
#665AED #AF5AED #ED5AE2
triadic
#AF5AED #EDAF5A #5AEDAF
tetradic
#AF5AED #ED665A #98ED5A #5AE2ED
square
#AF5AED #ED665A #98ED5A #5AE2ED
split-complementary
#AF5AED #E2ED5A #5AED66
monochromatic
#7314B8 #9423E7 #AF5AED #CA91F3 #E5C8F9

Accessibility & contrast

On white

3.81
#AF5AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AF5AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AED
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AED#FFFFFF#000000##000000
##AF5AED1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF2
Deuteranopia (green-blind)
#4184EA
Tritanopia (blue-blind)
#A6789B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5aed;
/* rgb */ color: rgb(175, 90, 237);
/* oklch */ color: oklch(63.4% 0.217 308.0);
Tailwind
colors: {
  custom: {
    50: '#cb8df4',
    500: '#af5aed',
    950: '#000000',
  },
}
SCSS
$custom: #af5aed;
$custom-light: #cb8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aed",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 237
  },
  "hsl": {
    "h": 274.694,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63431,
    "c": 0.21733,
    "h": 308
  },
  "luminance": 0.22541
}

Semantic roles & 50–950 ramp

primary
#AF5AED
secondary
#CDEBB8
accent
#DD0962
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AED

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

Preview Lab → · Contrast checker → · Palette generator →

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