#AF5DEA#AF5DEA

#AF5DEA is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.6% C 0.210 H 308.4°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF5DEA
RGBrgb(175, 93, 234)
HSLhsl(275, 77%, 64%)
HSVhsv(275, 60%, 92%)
CMYKcmyk(25.2%, 60.3%, 0%, 8.2%)
CIE-LABlab(54.95, 57.41, -58.38)
CIE-LCHlch(54.95, 81.88, 314.52°)
OKLaboklab(63.63% 0.1304 -0.1647)
OKLCHoklch(63.63% 0.21 308.4)
XYZxyz(36.4418, 22.8837, 80.3232)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DEA #98EA5D
analogous
#695DEA #AF5DEA #EA5DDE
triadic
#AF5DEA #EAAF5D #5DEAAF
tetradic
#AF5DEA #EA695D #98EA5D #5DDEEA
square
#AF5DEA #EA695D #98EA5D #5DDEEA
split-complementary
#AF5DEA #DEEA5D #5DEA69
monochromatic
#7317B5 #9427E3 #AF5DEA #CA93F1 #E5C9F8

Accessibility & contrast

On white

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

On black

5.58
#AF5DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DEA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DEA#FFFFFF#000000##000000
##AF5DEA1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C80EE
Deuteranopia (green-blind)
#4885E7
Tritanopia (blue-blind)
#A6799B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5dea;
/* rgb */ color: rgb(175, 93, 234);
/* oklch */ color: oklch(63.6% 0.210 308.4);
Tailwind
colors: {
  custom: {
    50: '#cb8ff1',
    500: '#af5dea',
    950: '#000000',
  },
}
SCSS
$custom: #af5dea;
$custom-light: #cb8ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dea",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 234
  },
  "hsl": {
    "h": 274.894,
    "s": 77.049,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63632,
    "c": 0.21003,
    "h": 308.4
  },
  "luminance": 0.22883
}

Semantic roles & 50–950 ramp

primary
#AF5DEA
secondary
#CDEAB9
accent
#D90C62
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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