#985CE5#985CE5

#985CE5 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.200 H 300.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#985CE5
RGBrgb(152, 92, 229)
HSLhsl(266, 72%, 63%)
HSVhsv(266, 60%, 90%)
CMYKcmyk(33.6%, 59.8%, 0%, 10.2%)
CIE-LABlab(51.82, 51.52, -60.74)
CIE-LCHlch(51.82, 79.65, 310.31°)
OKLaboklab(60.67% 0.1025 -0.1723)
OKLCHoklch(60.67% 0.2 300.7)
XYZxyz(30.9155, 19.9867, 76.3426)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CE5 #A9E55C
analogous
#5C64E5 #985CE5 #DC5CE5
triadic
#985CE5 #E5985C #5CE598
tetradic
#985CE5 #E55C64 #A9E55C #5CE5DC
square
#985CE5 #E55C64 #A9E55C #5CE5DC
split-complementary
#985CE5 #E5DC5C #64E55C
monochromatic
#5A1BAB #7727DD #985CE5 #B991ED #DBC6F6

Accessibility & contrast

On white

4.20
#985CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#985CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CE5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CE5#FFFFFF#000000##000000
##985CE51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BE9
Deuteranopia (green-blind)
#2F7BE2
Tritanopia (blue-blind)
#887998
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985ce5;
/* rgb */ color: rgb(152, 92, 229);
/* oklch */ color: oklch(60.7% 0.200 300.7);
Tailwind
colors: {
  custom: {
    50: '#bb8dee',
    500: '#985ce5',
    950: '#000000',
  },
}
SCSS
$custom: #985ce5;
$custom-light: #bb8dee;
$custom-dark: #000000;
JSON
{
  "hex": "#985ce5",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 266.277,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60671,
    "c": 0.20046,
    "h": 300.7
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#985CE5
secondary
#D1E7B6
accent
#D5117F
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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