#985DD7#985DD7

#985DD7 is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.9% C 0.183 H 303.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#985DD7
RGBrgb(152, 93, 215)
HSLhsl(269, 60%, 60%)
HSVhsv(269, 57%, 84%)
CMYKcmyk(29.3%, 56.7%, 0%, 15.7%)
CIE-LABlab(51.16, 47.59, -53.88)
CIE-LCHlch(51.16, 71.89, 311.46°)
OKLaboklab(59.92% 0.1014 -0.1521)
OKLCHoklch(59.92% 0.183 303.7)
XYZxyz(29.1262, 19.4105, 66.4890)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985DD7 #9CD75D
analogous
#5D5FD7 #985DD7 #D55DD7
triadic
#985DD7 #D7985D #5DD798
tetradic
#985DD7 #D75D5F #9CD75D #5DD7D5
square
#985DD7 #D75D5F #9CD75D #5DD7D5
split-complementary
#985DD7 #D7D55D #5FD75D
monochromatic
#5B2595 #7931C6 #985DD7 #B78EE3 #D6BFEF

Accessibility & contrast

On white

4.30
#985DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#985DD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985DD7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985DD7#FFFFFF#000000##000000
##985DD71.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B78DB
Deuteranopia (green-blind)
#427AD4
Tritanopia (blue-blind)
#8D7591
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985dd7;
/* rgb */ color: rgb(152, 93, 215);
/* oklch */ color: oklch(59.9% 0.183 303.7);
Tailwind
colors: {
  custom: {
    50: '#ba8de4',
    500: '#985dd7',
    950: '#000000',
  },
}
SCSS
$custom: #985dd7;
$custom-light: #ba8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#985dd7",
  "rgb": {
    "r": 152,
    "g": 93,
    "b": 215
  },
  "hsl": {
    "h": 269.016,
    "s": 60.396,
    "l": 60.392
  },
  "oklch": {
    "l": 0.59915,
    "c": 0.18284,
    "h": 303.7
  },
  "luminance": 0.1941
}

Semantic roles & 50–950 ramp

primary
#985DD7
secondary
#C9DFB1
accent
#C81D76
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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