#AF5AE7#AF5AE7

#AF5AE7 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.1% C 0.211 H 309.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE7
RGBrgb(175, 90, 231)
HSLhsl(276, 75%, 63%)
HSVhsv(276, 61%, 91%)
CMYKcmyk(24.2%, 61%, 0%, 9.4%)
CIE-LABlab(54.23, 58.21, -57.85)
CIE-LCHlch(54.23, 82.07, 315.18°)
OKLaboklab(63.05% 0.134 -0.1631)
OKLCHoklch(63.05% 0.211 309.4)
XYZxyz(35.7563, 22.1964, 77.9865)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE7 #92E75A
analogous
#685AE7 #AF5AE7 #E75AD9
triadic
#AF5AE7 #E7AF5A #5AE7AF
tetradic
#AF5AE7 #E7685A #92E75A #5AD9E7
square
#AF5AE7 #E7685A #92E75A #5AD9E7
split-complementary
#AF5AE7 #D9E75A #5AE768
monochromatic
#7319AD #9525DF #AF5AE7 #C98FEF #E3C5F7

Accessibility & contrast

On white

3.86
#AF5AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF5AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE7#FFFFFF#000000##000000
##AF5AE71.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#187EEB
Deuteranopia (green-blind)
#4783E4
Tritanopia (blue-blind)
#A77598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ae7;
/* rgb */ color: rgb(175, 90, 231);
/* oklch */ color: oklch(63.1% 0.211 309.4);
Tailwind
colors: {
  custom: {
    50: '#cb8def',
    500: '#af5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae7;
$custom-light: #cb8def;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae7",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 276.17,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63053,
    "c": 0.21108,
    "h": 309.4
  },
  "luminance": 0.22196
}

Semantic roles & 50–950 ramp

primary
#AF5AE7
secondary
#C9E8B5
accent
#D70F5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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