#985DE7#985DE7

#985DE7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 60.9% C 0.201 H 300.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#985DE7
RGBrgb(152, 93, 231)
HSLhsl(266, 74%, 64%)
HSVhsv(266, 60%, 91%)
CMYKcmyk(34.2%, 59.7%, 0%, 9.4%)
CIE-LABlab(52.14, 51.49, -61.35)
CIE-LCHlch(52.14, 80.09, 310.01°)
OKLaboklab(60.95% 0.1012 -0.1741)
OKLCHoklch(60.95% 0.201 300.2)
XYZxyz(31.2836, 20.2734, 77.8508)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985DE7 #ACE75D
analogous
#5D67E7 #985DE7 #DD5DE7
triadic
#985DE7 #E7985D #5DE798
tetradic
#985DE7 #E75D67 #ACE75D #5DE7DD
square
#985DE7 #E75D67 #ACE75D #5DE7DD
split-complementary
#985DE7 #E7DD5D #67E75D
monochromatic
#5A1AB0 #7628DF #985DE7 #BA92EF #DCC8F7

Accessibility & contrast

On white

4.15
#985DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#985DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985DE7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985DE7#FFFFFF#000000##000000
##985DE71.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#2E7BE4
Tritanopia (blue-blind)
#877A99
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985de7;
/* rgb */ color: rgb(152, 93, 231);
/* oklch */ color: oklch(60.9% 0.201 300.2);
Tailwind
colors: {
  custom: {
    50: '#bb8def',
    500: '#985de7',
    950: '#000000',
  },
}
SCSS
$custom: #985de7;
$custom-light: #bb8def;
$custom-dark: #000000;
JSON
{
  "hex": "#985de7",
  "rgb": {
    "r": 152,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 265.652,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60947,
    "c": 0.20138,
    "h": 300.2
  },
  "luminance": 0.20274
}

Semantic roles & 50–950 ramp

primary
#985DE7
secondary
#D3E8B7
accent
#D60F81
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #985DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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