#985DD5#985DD5

#985DD5 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.181 H 304.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#985DD5
RGBrgb(152, 93, 213)
HSLhsl(270, 59%, 60%)
HSVhsv(270, 56%, 84%)
CMYKcmyk(28.6%, 56.3%, 0%, 16.5%)
CIE-LABlab(51.05, 47.12, -52.93)
CIE-LCHlch(51.05, 70.86, 311.67°)
OKLaboklab(59.79% 0.1014 -0.1494)
OKLCHoklch(59.79% 0.181 304.2)
XYZxyz(28.8708, 19.3083, 65.1438)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985DD5 #9AD55D
analogous
#5D5ED5 #985DD5 #D45DD5
triadic
#985DD5 #D5985D #5DD598
tetradic
#985DD5 #D55D5E #9AD55D #5DD5D4
square
#985DD5 #D55D5E #9AD55D #5DD5D4
split-complementary
#985DD5 #D5D45D #5ED55D
monochromatic
#5B2692 #7932C2 #985DD5 #B78EE2 #D6BEEE

Accessibility & contrast

On white

4.32
#985DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#985DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985DD5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985DD5#FFFFFF#000000##000000
##985DD51.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D78D9
Deuteranopia (green-blind)
#447AD2
Tritanopia (blue-blind)
#8D7490
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985dd5;
/* rgb */ color: rgb(152, 93, 213);
/* oklch */ color: oklch(59.8% 0.181 304.2);
Tailwind
colors: {
  custom: {
    50: '#ba8de2',
    500: '#985dd5',
    950: '#000000',
  },
}
SCSS
$custom: #985dd5;
$custom-light: #ba8de2;
$custom-dark: #000000;
JSON
{
  "hex": "#985dd5",
  "rgb": {
    "r": 152,
    "g": 93,
    "b": 213
  },
  "hsl": {
    "h": 269.5,
    "s": 58.824,
    "l": 60
  },
  "oklch": {
    "l": 0.59791,
    "c": 0.18051,
    "h": 304.2
  },
  "luminance": 0.19308
}

Semantic roles & 50–950 ramp

primary
#985DD5
secondary
#C7DEB0
accent
#E24695
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985DD5

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

Preview Lab → · Contrast checker → · Palette generator →

#985DD5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva