#AF5DE8#AF5DE8

#AF5DE8 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.5% C 0.208 H 308.8°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE8
RGBrgb(175, 93, 232)
HSLhsl(275, 75%, 64%)
HSVhsv(275, 60%, 91%)
CMYKcmyk(24.6%, 59.9%, 0%, 9%)
CIE-LABlab(54.83, 56.97, -57.45)
CIE-LCHlch(54.83, 80.91, 314.76°)
OKLaboklab(63.51% 0.1304 -0.1619)
OKLCHoklch(63.51% 0.208 308.8)
XYZxyz(36.1561, 22.7694, 78.8185)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE8 #96E85D
analogous
#695DE8 #AF5DE8 #E85DDB
triadic
#AF5DE8 #E8AF5D #5DE8AF
tetradic
#AF5DE8 #E8695D #96E85D #5DDBE8
square
#AF5DE8 #E8695D #96E85D #5DDBE8
split-complementary
#AF5DE8 #DBE85D #5DE869
monochromatic
#7319B1 #9527E0 #AF5DE8 #C993F0 #E4C8F7

Accessibility & contrast

On white

3.78
#AF5DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AF5DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE8#FFFFFF#000000##000000
##AF5DE81.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2180EC
Deuteranopia (green-blind)
#4A84E5
Tritanopia (blue-blind)
#A7789A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de8;
/* rgb */ color: rgb(175, 93, 232);
/* oklch */ color: oklch(63.5% 0.208 308.8);
Tailwind
colors: {
  custom: {
    50: '#ca8ff0',
    500: '#af5de8',
    950: '#000000',
  },
}
SCSS
$custom: #af5de8;
$custom-light: #ca8ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de8",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 232
  },
  "hsl": {
    "h": 275.396,
    "s": 75.135,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63508,
    "c": 0.20792,
    "h": 308.8
  },
  "luminance": 0.22769
}

Semantic roles & 50–950 ramp

primary
#AF5DE8
secondary
#CCE9B8
accent
#D70E61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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