#985CD2#985CD2

#985CD2 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.5% C 0.179 H 305.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#985CD2
RGBrgb(152, 92, 210)
HSLhsl(271, 57%, 59%)
HSVhsv(271, 56%, 82%)
CMYKcmyk(27.6%, 56.2%, 0%, 17.6%)
CIE-LABlab(50.67, 46.94, -51.83)
CIE-LCHlch(50.67, 69.92, 312.17°)
OKLaboklab(59.46% 0.1026 -0.1461)
OKLCHoklch(59.46% 0.179 305.1)
XYZxyz(28.4064, 18.9830, 63.1279)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CD2 #96D25C
analogous
#5D5CD2 #985CD2 #D25CD1
triadic
#985CD2 #D2985C #5CD298
tetradic
#985CD2 #D25D5C #96D25C #5CD1D2
square
#985CD2 #D25D5C #96D25C #5CD1D2
split-complementary
#985CD2 #D1D25C #5CD25D
monochromatic
#5B278D #7A34BD #985CD2 #B68CDF #D5BCEC

Accessibility & contrast

On white

4.38
#985CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#985CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CD2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CD2#FFFFFF#000000##000000
##985CD21.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F77D6
Deuteranopia (green-blind)
#4679CF
Tritanopia (blue-blind)
#8E738E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985cd2;
/* rgb */ color: rgb(152, 92, 210);
/* oklch */ color: oklch(59.5% 0.179 305.1);
Tailwind
colors: {
  custom: {
    50: '#ba8ce0',
    500: '#985cd2',
    950: '#000000',
  },
}
SCSS
$custom: #985cd2;
$custom-light: #ba8ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#985cd2",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 270.508,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.17852,
    "h": 305.1
  },
  "luminance": 0.18983
}

Semantic roles & 50–950 ramp

primary
#985CD2
secondary
#C5DCAE
accent
#E04893
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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