#AF5AEF#AF5AEF

#AF5AEF is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.219 H 307.5°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF5AEF
RGBrgb(175, 90, 239)
HSLhsl(274, 82%, 65%)
HSVhsv(274, 62%, 94%)
CMYKcmyk(26.8%, 62.3%, 0%, 6.3%)
CIE-LABlab(54.72, 59.97, -61.55)
CIE-LCHlch(54.72, 85.94, 314.25°)
OKLaboklab(63.56% 0.1337 -0.174)
OKLCHoklch(63.56% 0.219 307.5)
XYZxyz(36.9121, 22.6588, 84.0736)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AEF #9AEF5A
analogous
#655AEF #AF5AEF #EF5AE5
triadic
#AF5AEF #EFAF5A #5AEFAF
tetradic
#AF5AEF #EF655A #9AEF5A #5AE5EF
square
#AF5AEF #EF655A #9AEF5A #5AE5EF
split-complementary
#AF5AEF #E5EF5A #5AEF65
monochromatic
#7312BC #9422EA #AF5AEF #CA92F4 #E5CAFA

Accessibility & contrast

On white

3.80
#AF5AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AF5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AEF
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AEF#FFFFFF#000000##000000
##AF5AEF1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F4
Deuteranopia (green-blind)
#3E84EC
Tritanopia (blue-blind)
#A5789D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5aef;
/* rgb */ color: rgb(175, 90, 239);
/* oklch */ color: oklch(63.6% 0.219 307.5);
Tailwind
colors: {
  custom: {
    50: '#cb8df5',
    500: '#af5aef',
    950: '#000000',
  },
}
SCSS
$custom: #af5aef;
$custom-light: #cb8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aef",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 274.228,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63559,
    "c": 0.21942,
    "h": 307.5
  },
  "luminance": 0.22658
}

Semantic roles & 50–950 ramp

primary
#AF5AEF
secondary
#CFECB9
accent
#DF0764
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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