#AF5EE2#AF5EE2

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

Color values

HEX#AF5EE2
RGBrgb(175, 94, 226)
HSLhsl(277, 69%, 63%)
HSVhsv(277, 58%, 89%)
CMYKcmyk(22.6%, 58.4%, 0%, 11.4%)
CIE-LABlab(54.67, 55.16, -54.34)
CIE-LCHlch(54.67, 77.43, 315.43°)
OKLaboklab(63.28% 0.1292 -0.1528)
OKLCHoklch(63.28% 0.2 310.2)
XYZxyz(35.4068, 22.6110, 74.4359)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EE2 #91E25E
analogous
#6D5EE2 #AF5EE2 #E25ED3
triadic
#AF5EE2 #E2AF5E #5EE2AF
tetradic
#AF5EE2 #E26D5E #91E25E #5ED3E2
square
#AF5EE2 #E26D5E #91E25E #5ED3E2
split-complementary
#AF5EE2 #D3E25E #5EE26D
monochromatic
#721EA7 #952AD9 #AF5EE2 #C992EB #E3C6F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5EE2#FFFFFF#000000##000000
##AF5EE21.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)
#2E7FE6
Deuteranopia (green-blind)
#5084DF
Tritanopia (blue-blind)
#A87797
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ee2;
/* rgb */ color: rgb(175, 94, 226);
/* oklch */ color: oklch(63.3% 0.200 310.2);
Tailwind
colors: {
  custom: {
    50: '#ca8fec',
    500: '#af5ee2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ee2;
$custom-light: #ca8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ee2",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 226
  },
  "hsl": {
    "h": 276.818,
    "s": 69.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63276,
    "c": 0.20013,
    "h": 310.2
  },
  "luminance": 0.2261
}

Semantic roles & 50–950 ramp

primary
#AF5EE2
secondary
#C8E6B6
accent
#D1145D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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