#AF5AEE#AF5AEE

#AF5AEE is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.5% C 0.218 H 307.8°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF5AEE
RGBrgb(175, 90, 238)
HSLhsl(274, 81%, 64%)
HSVhsv(274, 62%, 93%)
CMYKcmyk(26.5%, 62.2%, 0%, 6.7%)
CIE-LABlab(54.66, 59.75, -61.09)
CIE-LCHlch(54.66, 85.45, 314.36°)
OKLaboklab(63.5% 0.1338 -0.1726)
OKLCHoklch(63.5% 0.218 307.8)
XYZxyz(36.7648, 22.5998, 83.2978)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AEE #99EE5A
analogous
#655AEE #AF5AEE #EE5AE3
triadic
#AF5AEE #EEAF5A #5AEEAF
tetradic
#AF5AEE #EE655A #99EE5A #5AE3EE
square
#AF5AEE #EE655A #99EE5A #5AE3EE
split-complementary
#AF5AEE #E3EE5A #5AEE65
monochromatic
#7313BA #9423E8 #AF5AEE #CA91F4 #E5C9F9

Accessibility & contrast

On white

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

On black

5.52
#AF5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AEE
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AEE#FFFFFF#000000##000000
##AF5AEE1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F3
Deuteranopia (green-blind)
#4084EB
Tritanopia (blue-blind)
#A5789C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5aee;
/* rgb */ color: rgb(175, 90, 238);
/* oklch */ color: oklch(63.5% 0.218 307.8);
Tailwind
colors: {
  custom: {
    50: '#cb8df4',
    500: '#af5aee',
    950: '#000000',
  },
}
SCSS
$custom: #af5aee;
$custom-light: #cb8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aee",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 274.459,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63495,
    "c": 0.21837,
    "h": 307.8
  },
  "luminance": 0.22599
}

Semantic roles & 50–950 ramp

primary
#AF5AEE
secondary
#CEECB8
accent
#DE0863
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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