#985CD9#985CD9

#985CD9 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.9% C 0.187 H 303.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#985CD9
RGBrgb(152, 92, 217)
HSLhsl(269, 62%, 61%)
HSVhsv(269, 58%, 85%)
CMYKcmyk(30%, 57.6%, 0%, 14.9%)
CIE-LABlab(51.08, 48.61, -55.15)
CIE-LCHlch(51.08, 73.51, 311.39°)
OKLaboklab(59.89% 0.1027 -0.1559)
OKLCHoklch(59.89% 0.187 303.4)
XYZxyz(29.2976, 19.3395, 67.8216)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CD9 #9DD95C
analogous
#5C5ED9 #985CD9 #D65CD9
triadic
#985CD9 #D9985C #5CD998
tetradic
#985CD9 #D95C5E #9DD95C #5CD9D6
square
#985CD9 #D95C5E #9DD95C #5CD9D6
split-complementary
#985CD9 #D9D65C #5ED95C
monochromatic
#5B2397 #792FC9 #985CD9 #B78EE5 #D7BFF0

Accessibility & contrast

On white

4.31
#985CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#985CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CD9
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CD9#FFFFFF#000000##000000
##985CD91.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2578DD
Deuteranopia (green-blind)
#3F79D6
Tritanopia (blue-blind)
#8C7592
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985cd9;
/* rgb */ color: rgb(152, 92, 217);
/* oklch */ color: oklch(59.9% 0.187 303.4);
Tailwind
colors: {
  custom: {
    50: '#ba8ce5',
    500: '#985cd9',
    950: '#000000',
  },
}
SCSS
$custom: #985cd9;
$custom-light: #ba8ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#985cd9",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 268.8,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59894,
    "c": 0.18663,
    "h": 303.4
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#985CD9
secondary
#C9E0B1
accent
#CA1C76
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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