#985DC7#985DC7

#985DC7 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.9% C 0.164 H 307.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#985DC7
RGBrgb(152, 93, 199)
HSLhsl(273, 49%, 57%)
HSVhsv(273, 53%, 78%)
CMYKcmyk(23.6%, 53.3%, 0%, 22%)
CIE-LABlab(50.25, 43.82, -46.20)
CIE-LCHlch(50.25, 63.67, 313.49°)
OKLaboklab(58.95% 0.1007 -0.1297)
OKLCHoklch(58.95% 0.164 307.8)
XYZxyz(27.1700, 18.6280, 56.1860)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985DC7 #8CC75D
analogous
#635DC7 #985DC7 #C75DC1
triadic
#985DC7 #C7985D #5DC798
tetradic
#985DC7 #C7635D #8CC75D #5DC1C7
square
#985DC7 #C7635D #8CC75D #5DC1C7
split-complementary
#985DC7 #C1C75D #5DC763
monochromatic
#592C7E #7A3BAC #985DC7 #B58AD7 #D2B8E6

Accessibility & contrast

On white

4.44
#985DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#985DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985DC7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985DC7#FFFFFF#000000##000000
##985DC71.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D75CB
Deuteranopia (green-blind)
#5078C4
Tritanopia (blue-blind)
#917089
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985dc7;
/* rgb */ color: rgb(152, 93, 199);
/* oklch */ color: oklch(58.9% 0.164 307.8);
Tailwind
colors: {
  custom: {
    50: '#b98dd8',
    500: '#985dc7',
    950: '#000000',
  },
}
SCSS
$custom: #985dc7;
$custom-light: #b98dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#985dc7",
  "rgb": {
    "r": 152,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 273.396,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58947,
    "c": 0.16418,
    "h": 307.8
  },
  "luminance": 0.18628
}

Semantic roles & 50–950 ramp

primary
#985DC7
secondary
#BDD5AA
accent
#D8508C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #985DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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