#985FD9#985FD9

#985FD9 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.3% C 0.182 H 302.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#985FD9
RGBrgb(152, 95, 217)
HSLhsl(268, 62%, 61%)
HSVhsv(268, 56%, 85%)
CMYKcmyk(30%, 56.2%, 0%, 14.9%)
CIE-LABlab(51.69, 47.00, -54.17)
CIE-LCHlch(51.69, 71.72, 310.95°)
OKLaboklab(60.34% 0.0989 -0.153)
OKLCHoklch(60.34% 0.182 302.9)
XYZxyz(29.5626, 19.8696, 67.9100)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FD9 #A0D95F
analogous
#5F63D9 #985FD9 #D55FD9
triadic
#985FD9 #D9985F #5FD998
tetradic
#985FD9 #D95F63 #A0D95F #5FD9D5
square
#985FD9 #D95F63 #A0D95F #5FD9D5
split-complementary
#985FD9 #D9D55F #63D95F
monochromatic
#5B2499 #7830CB #985FD9 #B890E5 #D8C2F0

Accessibility & contrast

On white

4.22
#985FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#985FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FD9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FD9#FFFFFF#000000##000000
##985FD91.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7ADD
Deuteranopia (green-blind)
#437BD6
Tritanopia (blue-blind)
#8C7793
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985fd9;
/* rgb */ color: rgb(152, 95, 217);
/* oklch */ color: oklch(60.3% 0.182 302.9);
Tailwind
colors: {
  custom: {
    50: '#ba8ee5',
    500: '#985fd9',
    950: '#000000',
  },
}
SCSS
$custom: #985fd9;
$custom-light: #ba8ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#985fd9",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 217
  },
  "hsl": {
    "h": 268.033,
    "s": 61.616,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60339,
    "c": 0.1822,
    "h": 302.9
  },
  "luminance": 0.1987
}

Semantic roles & 50–950 ramp

primary
#985FD9
secondary
#CBE1B3
accent
#C91C78
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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