#AF5DEB#AF5DEB

#AF5DEB is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.7% C 0.211 H 308.1°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF5DEB
RGBrgb(175, 93, 235)
HSLhsl(275, 78%, 64%)
HSVhsv(275, 60%, 92%)
CMYKcmyk(25.5%, 60.4%, 0%, 7.8%)
CIE-LABlab(55.01, 57.63, -58.85)
CIE-LCHlch(55.01, 82.37, 314.40°)
OKLaboklab(63.69% 0.1304 -0.166)
OKLCHoklch(63.69% 0.211 308.1)
XYZxyz(36.5859, 22.9413, 81.0819)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DEB #99EB5D
analogous
#685DEB #AF5DEB #EB5DE0
triadic
#AF5DEB #EBAF5D #5DEBAF
tetradic
#AF5DEB #EB685D #99EB5D #5DE0EB
square
#AF5DEB #EB685D #99EB5D #5DE0EB
split-complementary
#AF5DEB #E0EB5D #5DEB68
monochromatic
#7317B7 #9427E4 #AF5DEB #CA93F2 #E5CAF8

Accessibility & contrast

On white

3.76
#AF5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#AF5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DEB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DEB#FFFFFF#000000##000000
##AF5DEB1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A80EF
Deuteranopia (green-blind)
#4785E8
Tritanopia (blue-blind)
#A6799C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5deb;
/* rgb */ color: rgb(175, 93, 235);
/* oklch */ color: oklch(63.7% 0.211 308.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ff2',
    500: '#af5deb',
    950: '#000000',
  },
}
SCSS
$custom: #af5deb;
$custom-light: #cb8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5deb",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 274.648,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63694,
    "c": 0.2111,
    "h": 308.1
  },
  "luminance": 0.22941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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