#AF5DEC#AF5DEC

#AF5DEC is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.8% C 0.212 H 307.9°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF5DEC
RGBrgb(175, 93, 236)
HSLhsl(274, 79%, 65%)
HSVhsv(274, 61%, 93%)
CMYKcmyk(25.8%, 60.6%, 0%, 7.5%)
CIE-LABlab(55.07, 57.85, -59.31)
CIE-LCHlch(55.07, 82.85, 314.29°)
OKLaboklab(63.76% 0.1303 -0.1674)
OKLCHoklch(63.76% 0.212 307.9)
XYZxyz(36.7308, 22.9993, 81.8449)
Luminance0.2300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DEC #9AEC5D
analogous
#685DEC #AF5DEC #EC5DE1
triadic
#AF5DEC #ECAF5D #5DECAF
tetradic
#AF5DEC #EC685D #9AEC5D #5DE1EC
square
#AF5DEC #EC685D #9AEC5D #5DE1EC
split-complementary
#AF5DEC #E1EC5D #5DEC68
monochromatic
#7316B9 #9426E6 #AF5DEC #CA94F2 #E5CBF9

Accessibility & contrast

On white

3.75
#AF5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#AF5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DEC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DEC#FFFFFF#000000##000000
##AF5DEC1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1781F0
Deuteranopia (green-blind)
#4685E9
Tritanopia (blue-blind)
#A6799C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5dec;
/* rgb */ color: rgb(175, 93, 236);
/* oklch */ color: oklch(63.8% 0.212 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb8ff3',
    500: '#af5dec',
    950: '#000000',
  },
}
SCSS
$custom: #af5dec;
$custom-light: #cb8ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dec",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 274.406,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63756,
    "c": 0.21215,
    "h": 307.9
  },
  "luminance": 0.22999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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