#AF5DE9#AF5DE9

#AF5DE9 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.6% C 0.209 H 308.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE9
RGBrgb(175, 93, 233)
HSLhsl(275, 76%, 64%)
HSVhsv(275, 60%, 91%)
CMYKcmyk(24.9%, 60.1%, 0%, 8.6%)
CIE-LABlab(54.89, 57.19, -57.92)
CIE-LCHlch(54.89, 81.39, 314.64°)
OKLaboklab(63.57% 0.1304 -0.1633)
OKLCHoklch(63.57% 0.209 308.6)
XYZxyz(36.2986, 22.8264, 79.5687)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE9 #97E95D
analogous
#695DE9 #AF5DE9 #E95DDD
triadic
#AF5DE9 #E9AF5D #5DE9AF
tetradic
#AF5DE9 #E9695D #97E95D #5DDDE9
square
#AF5DE9 #E9695D #97E95D #5DDDE9
split-complementary
#AF5DE9 #DDE95D #5DE969
monochromatic
#7318B3 #9427E2 #AF5DE9 #CA93F0 #E4C9F8

Accessibility & contrast

On white

3.77
#AF5DE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF5DE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE9
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE9#FFFFFF#000000##000000
##AF5DE91.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F80ED
Deuteranopia (green-blind)
#4984E6
Tritanopia (blue-blind)
#A7789A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de9;
/* rgb */ color: rgb(175, 93, 233);
/* oklch */ color: oklch(63.6% 0.209 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb8ff1',
    500: '#af5de9',
    950: '#000000',
  },
}
SCSS
$custom: #af5de9;
$custom-light: #cb8ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de9",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 233
  },
  "hsl": {
    "h": 275.143,
    "s": 76.087,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63569,
    "c": 0.20898,
    "h": 308.6
  },
  "luminance": 0.22826
}

Semantic roles & 50–950 ramp

primary
#AF5DE9
secondary
#CDE9B8
accent
#D80D61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DE9

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

Preview Lab → · Contrast checker → · Palette generator →

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