#985FD7#985FD7

#985FD7 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.2% C 0.180 H 303.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#985FD7
RGBrgb(152, 95, 215)
HSLhsl(269, 60%, 61%)
HSVhsv(269, 56%, 84%)
CMYKcmyk(29.3%, 55.8%, 0%, 15.7%)
CIE-LABlab(51.57, 46.52, -53.23)
CIE-LCHlch(51.57, 70.69, 311.15°)
OKLaboklab(60.22% 0.0989 -0.1502)
OKLCHoklch(60.22% 0.18 303.3)
XYZxyz(29.3041, 19.7662, 66.5482)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FD7 #9ED75F
analogous
#5F62D7 #985FD7 #D45FD7
triadic
#985FD7 #D7985F #5FD798
tetradic
#985FD7 #D75F62 #9ED75F #5FD7D4
square
#985FD7 #D75F62 #9ED75F #5FD7D4
split-complementary
#985FD7 #D7D45F #62D75F
monochromatic
#5B2696 #7932C7 #985FD7 #B890E3 #D7C1EF

Accessibility & contrast

On white

4.24
#985FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#985FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FD7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FD7#FFFFFF#000000##000000
##985FD71.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#307ADB
Deuteranopia (green-blind)
#457BD4
Tritanopia (blue-blind)
#8C7692
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985fd7;
/* rgb */ color: rgb(152, 95, 215);
/* oklch */ color: oklch(60.2% 0.180 303.3);
Tailwind
colors: {
  custom: {
    50: '#ba8ee4',
    500: '#985fd7',
    950: '#000000',
  },
}
SCSS
$custom: #985fd7;
$custom-light: #ba8ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#985fd7",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 268.5,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60215,
    "c": 0.17985,
    "h": 303.3
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#985FD7
secondary
#CAE0B2
accent
#C81E77
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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