#985BD2#985BD2

#985BD2 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.3% C 0.180 H 305.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#985BD2
RGBrgb(152, 91, 210)
HSLhsl(271, 57%, 59%)
HSVhsv(271, 57%, 82%)
CMYKcmyk(27.6%, 56.7%, 0%, 17.6%)
CIE-LABlab(50.47, 47.47, -52.15)
CIE-LCHlch(50.47, 70.52, 312.31°)
OKLaboklab(59.31% 0.1038 -0.1471)
OKLCHoklch(59.31% 0.18 305.2)
XYZxyz(28.3203, 18.8109, 63.0992)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985BD2 #95D25B
analogous
#5D5BD2 #985BD2 #D25BD1
triadic
#985BD2 #D2985B #5BD298
tetradic
#985BD2 #D25D5B #95D25B #5BD1D2
square
#985BD2 #D25D5B #95D25B #5BD1D2
split-complementary
#985BD2 #D1D25B #5BD25D
monochromatic
#5B268C #7A34BC #985BD2 #B68BDF #D4BBEC

Accessibility & contrast

On white

4.41
#985BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#985BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985BD2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985BD2#FFFFFF#000000##000000
##985BD21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D6
Deuteranopia (green-blind)
#4478CF
Tritanopia (blue-blind)
#8E728E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985bd2;
/* rgb */ color: rgb(152, 91, 210);
/* oklch */ color: oklch(59.3% 0.180 305.2);
Tailwind
colors: {
  custom: {
    50: '#ba8ce0',
    500: '#985bd2',
    950: '#000000',
  },
}
SCSS
$custom: #985bd2;
$custom-light: #ba8ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#985bd2",
  "rgb": {
    "r": 152,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 270.756,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59308,
    "c": 0.18002,
    "h": 305.2
  },
  "luminance": 0.18811
}

Semantic roles & 50–950 ramp

primary
#985BD2
secondary
#C4DCAD
accent
#E04892
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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