#985EC7#985EC7

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

Color values

HEX#985EC7
RGBrgb(152, 94, 199)
HSLhsl(273, 48%, 57%)
HSVhsv(273, 53%, 78%)
CMYKcmyk(23.6%, 52.8%, 0%, 22%)
CIE-LABlab(50.46, 43.27, -45.86)
CIE-LCHlch(50.46, 63.05, 313.33°)
OKLaboklab(59.1% 0.0994 -0.1287)
OKLCHoklch(59.1% 0.163 307.7)
XYZxyz(27.2583, 18.8047, 56.2154)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EC7 #8DC75E
analogous
#645EC7 #985EC7 #C75EC1
triadic
#985EC7 #C7985E #5EC798
tetradic
#985EC7 #C7645E #8DC75E #5EC1C7
square
#985EC7 #C7645E #8DC75E #5EC1C7
split-complementary
#985EC7 #C1C75E #5EC764
monochromatic
#5A2C7F #7A3CAC #985EC7 #B58BD7 #D2B9E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##985EC7#FFFFFF#000000##000000
##985EC71.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)
#3E76CB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#91718A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985ec7;
/* rgb */ color: rgb(152, 94, 199);
/* oklch */ color: oklch(59.1% 0.163 307.7);
Tailwind
colors: {
  custom: {
    50: '#b98dd8',
    500: '#985ec7',
    950: '#000000',
  },
}
SCSS
$custom: #985ec7;
$custom-light: #b98dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#985ec7",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 273.143,
    "s": 48.387,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59101,
    "c": 0.1626,
    "h": 307.7
  },
  "luminance": 0.18804
}

Semantic roles & 50–950 ramp

primary
#985EC7
secondary
#BED6AB
accent
#D8508D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #985EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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