#AF5EE1#AF5EE1

#AF5EE1 is a light, vivid violet. Relative luminance 0.226; OKLCH L 63.2% C 0.199 H 310.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5EE1
RGBrgb(175, 94, 225)
HSLhsl(277, 69%, 63%)
HSVhsv(277, 58%, 88%)
CMYKcmyk(22.2%, 58.2%, 0%, 11.8%)
CIE-LABlab(54.61, 54.94, -53.87)
CIE-LCHlch(54.61, 76.94, 315.56°)
OKLaboklab(63.22% 0.1292 -0.1514)
OKLCHoklch(63.22% 0.199 310.5)
XYZxyz(35.2700, 22.5563, 73.7154)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EE1 #90E15E
analogous
#6D5EE1 #AF5EE1 #E15ED2
triadic
#AF5EE1 #E1AF5E #5EE1AF
tetradic
#AF5EE1 #E16D5E #90E15E #5ED2E1
square
#AF5EE1 #E16D5E #90E15E #5ED2E1
split-complementary
#AF5EE1 #D2E15E #5EE16D
monochromatic
#721FA6 #952AD7 #AF5EE1 #C992EB #E2C5F4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5EE1#FFFFFF#000000##000000
##AF5EE11.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)
#2F7FE5
Deuteranopia (green-blind)
#5184DE
Tritanopia (blue-blind)
#A97697
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ee1;
/* rgb */ color: rgb(175, 94, 225);
/* oklch */ color: oklch(63.2% 0.199 310.5);
Tailwind
colors: {
  custom: {
    50: '#ca8feb',
    500: '#af5ee1',
    950: '#000000',
  },
}
SCSS
$custom: #af5ee1;
$custom-light: #ca8feb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ee1",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 225
  },
  "hsl": {
    "h": 277.099,
    "s": 68.586,
    "l": 62.549
  },
  "oklch": {
    "l": 0.63216,
    "c": 0.19907,
    "h": 310.5
  },
  "luminance": 0.22556
}

Semantic roles & 50–950 ramp

primary
#AF5EE1
secondary
#C8E5B6
accent
#D1155D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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