#985FDF#985FDF

#985FDF is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.7% C 0.189 H 301.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#985FDF
RGBrgb(152, 95, 223)
HSLhsl(267, 67%, 62%)
HSVhsv(267, 57%, 87%)
CMYKcmyk(31.8%, 57.4%, 0%, 12.5%)
CIE-LABlab(52.05, 48.47, -56.99)
CIE-LCHlch(52.05, 74.82, 310.38°)
OKLaboklab(60.72% 0.099 -0.1613)
OKLCHoklch(60.72% 0.189 301.5)
XYZxyz(30.3573, 20.1874, 72.0950)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FDF #A6DF5F
analogous
#5F66DF #985FDF #D85FDF
triadic
#985FDF #DF985F #5FDF98
tetradic
#985FDF #DF5F66 #A6DF5F #5FDFD8
square
#985FDF #DF5F66 #A6DF5F #5FDFD8
split-complementary
#985FDF #DFD85F #66DF5F
monochromatic
#5B21A3 #772CD5 #985FDF #B992E9 #DAC5F3

Accessibility & contrast

On white

4.17
#985FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#985FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FDF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FDF#FFFFFF#000000##000000
##985FDF1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#237BE3
Deuteranopia (green-blind)
#3C7CDC
Tritanopia (blue-blind)
#8A7996
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985fdf;
/* rgb */ color: rgb(152, 95, 223);
/* oklch */ color: oklch(60.7% 0.189 301.5);
Tailwind
colors: {
  custom: {
    50: '#ba8fea',
    500: '#985fdf',
    950: '#000000',
  },
}
SCSS
$custom: #985fdf;
$custom-light: #ba8fea;
$custom-dark: #000000;
JSON
{
  "hex": "#985fdf",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 266.719,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60718,
    "c": 0.18924,
    "h": 301.5
  },
  "luminance": 0.20188
}

Semantic roles & 50–950 ramp

primary
#985FDF
secondary
#CFE4B6
accent
#CF177D
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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