#AF5DE7#AF5DE7

#AF5DE7 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.4% C 0.207 H 309.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE7
RGBrgb(175, 93, 231)
HSLhsl(276, 74%, 64%)
HSVhsv(276, 60%, 91%)
CMYKcmyk(24.2%, 59.7%, 0%, 9.4%)
CIE-LABlab(54.78, 56.75, -56.98)
CIE-LCHlch(54.78, 80.42, 314.88°)
OKLaboklab(63.45% 0.1304 -0.1606)
OKLCHoklch(63.45% 0.207 309.1)
XYZxyz(36.0145, 22.7128, 78.0726)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE7 #95E75D
analogous
#6A5DE7 #AF5DE7 #E75DDA
triadic
#AF5DE7 #E7AF5D #5DE7AF
tetradic
#AF5DE7 #E76A5D #95E75D #5DDAE7
square
#AF5DE7 #E76A5D #95E75D #5DDAE7
split-complementary
#AF5DE7 #DAE75D #5DE76A
monochromatic
#731AB0 #9528DF #AF5DE7 #C992EF #E4C8F7

Accessibility & contrast

On white

3.79
#AF5DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF5DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE7#FFFFFF#000000##000000
##AF5DE71.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2380EB
Deuteranopia (green-blind)
#4B84E4
Tritanopia (blue-blind)
#A77899
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de7;
/* rgb */ color: rgb(175, 93, 231);
/* oklch */ color: oklch(63.4% 0.207 309.1);
Tailwind
colors: {
  custom: {
    50: '#ca8fef',
    500: '#af5de7',
    950: '#000000',
  },
}
SCSS
$custom: #af5de7;
$custom-light: #ca8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de7",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 275.652,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63446,
    "c": 0.20687,
    "h": 309.1
  },
  "luminance": 0.22712
}

Semantic roles & 50–950 ramp

primary
#AF5DE7
secondary
#CBE8B7
accent
#D60F60
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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