#AF5EEB#AF5EEB

#AF5EEB is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 63.8% C 0.210 H 308.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF5EEB
RGBrgb(175, 94, 235)
HSLhsl(274, 78%, 65%)
HSVhsv(274, 60%, 92%)
CMYKcmyk(25.5%, 60%, 0%, 7.8%)
CIE-LABlab(55.19, 57.14, -58.55)
CIE-LCHlch(55.19, 81.81, 314.30°)
OKLaboklab(63.83% 0.1292 -0.1652)
OKLCHoklch(63.83% 0.21 308)
XYZxyz(36.6743, 23.1180, 81.1114)
Luminance0.2312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EEB #9AEB5E
analogous
#695EEB #AF5EEB #EB5EE1
triadic
#AF5EEB #EBAF5E #5EEBAF
tetradic
#AF5EEB #EB695E #9AEB5E #5EE1EB
square
#AF5EEB #EB695E #9AEB5E #5EE1EB
split-complementary
#AF5EEB #E1EB5E #5EEB69
monochromatic
#7317B8 #9428E4 #AF5EEB #CA94F2 #E5CBF9

Accessibility & contrast

On white

3.73
#AF5EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#AF5EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EEB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EEB#FFFFFF#000000##000000
##AF5EEB1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81EF
Deuteranopia (green-blind)
#4885E8
Tritanopia (blue-blind)
#A67A9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5eeb;
/* rgb */ color: rgb(175, 94, 235);
/* oklch */ color: oklch(63.8% 0.210 308.0);
Tailwind
colors: {
  custom: {
    50: '#cb8ff2',
    500: '#af5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #af5eeb;
$custom-light: #cb8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5eeb",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 274.468,
    "s": 77.901,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63826,
    "c": 0.20969,
    "h": 308
  },
  "luminance": 0.23118
}

Semantic roles & 50–950 ramp

primary
#AF5EEB
secondary
#CFEBBA
accent
#DA0B63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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