#AF5AE4#AF5AE4

#AF5AE4 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.9% C 0.208 H 310.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE4
RGBrgb(175, 90, 228)
HSLhsl(277, 72%, 62%)
HSVhsv(277, 61%, 89%)
CMYKcmyk(23.2%, 60.5%, 0%, 10.6%)
CIE-LABlab(54.06, 57.56, -56.45)
CIE-LCHlch(54.06, 80.62, 315.56°)
OKLaboklab(62.87% 0.1341 -0.159)
OKLCHoklch(62.87% 0.208 310.1)
XYZxyz(35.3363, 22.0284, 75.7742)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE4 #8FE45A
analogous
#6A5AE4 #AF5AE4 #E45AD4
triadic
#AF5AE4 #E4AF5A #5AE4AF
tetradic
#AF5AE4 #E46A5A #8FE45A #5AD4E4
square
#AF5AE4 #E46A5A #8FE45A #5AD4E4
split-complementary
#AF5AE4 #D4E45A #5AE46A
monochromatic
#721CA8 #9625DB #AF5AE4 #C98FED #E2C3F5

Accessibility & contrast

On white

3.88
#AF5AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF5AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE4#FFFFFF#000000##000000
##AF5AE41.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7DE8
Deuteranopia (green-blind)
#4A83E1
Tritanopia (blue-blind)
#A87497
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5ae4;
/* rgb */ color: rgb(175, 90, 228);
/* oklch */ color: oklch(62.9% 0.208 310.1);
Tailwind
colors: {
  custom: {
    50: '#ca8ded',
    500: '#af5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae4;
$custom-light: #ca8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae4",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 276.957,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62867,
    "c": 0.20796,
    "h": 310.1
  },
  "luminance": 0.22028
}

Semantic roles & 50–950 ramp

primary
#AF5AE4
secondary
#C7E6B4
accent
#D4125C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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