#985FE7#985FE7

#985FE7 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.2% C 0.199 H 299.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#985FE7
RGBrgb(152, 95, 231)
HSLhsl(265, 74%, 64%)
HSVhsv(265, 59%, 91%)
CMYKcmyk(34.2%, 58.9%, 0%, 9.4%)
CIE-LABlab(52.54, 50.44, -60.71)
CIE-LCHlch(52.54, 78.93, 309.72°)
OKLaboklab(61.24% 0.0989 -0.1722)
OKLCHoklch(61.24% 0.199 299.9)
XYZxyz(31.4614, 20.6291, 77.9101)
Luminance0.2063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FE7 #AEE75F
analogous
#5F6AE7 #985FE7 #DC5FE7
triadic
#985FE7 #E7985F #5FE798
tetradic
#985FE7 #E75F6A #AEE75F #5FE7DC
square
#985FE7 #E75F6A #AEE75F #5FE7DC
split-complementary
#985FE7 #E7DC5F #6AE75F
monochromatic
#5A1BB1 #762ADF #985FE7 #BA94EF #DDC9F7

Accessibility & contrast

On white

4.10
#985FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#985FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FE7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FE7#FFFFFF#000000##000000
##985FE71.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E7DEB
Deuteranopia (green-blind)
#327CE4
Tritanopia (blue-blind)
#877C9A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985fe7;
/* rgb */ color: rgb(152, 95, 231);
/* oklch */ color: oklch(61.2% 0.199 299.9);
Tailwind
colors: {
  custom: {
    50: '#bb8fef',
    500: '#985fe7',
    950: '#000000',
  },
}
SCSS
$custom: #985fe7;
$custom-light: #bb8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#985fe7",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 265.147,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61236,
    "c": 0.19858,
    "h": 299.9
  },
  "luminance": 0.20629
}

Semantic roles & 50–950 ramp

primary
#985FE7
secondary
#D5E9B9
accent
#D60F83
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #985FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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