#985BD7#985BD7

#985BD7 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.6% C 0.186 H 304.0°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#985BD7
RGBrgb(152, 91, 215)
HSLhsl(270, 61%, 60%)
HSVhsv(270, 58%, 84%)
CMYKcmyk(29.3%, 57.7%, 0%, 15.7%)
CIE-LABlab(50.76, 48.66, -54.52)
CIE-LCHlch(50.76, 73.08, 311.75°)
OKLaboklab(59.62% 0.1039 -0.154)
OKLCHoklch(59.62% 0.186 304)
XYZxyz(28.9530, 19.0640, 66.4312)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985BD7 #9AD75B
analogous
#5B5CD7 #985BD7 #D65BD7
triadic
#985BD7 #D7985B #5BD798
tetradic
#985BD7 #D75B5C #9AD75B #5BD7D6
square
#985BD7 #D75B5C #9AD75B #5BD7D6
split-complementary
#985BD7 #D7D65B #5CD75B
monochromatic
#5B2494 #7930C5 #985BD7 #B78CE3 #D6BDEF

Accessibility & contrast

On white

4.36
#985BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#985BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985BD7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985BD7#FFFFFF#000000##000000
##985BD71.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2577DB
Deuteranopia (green-blind)
#3F79D4
Tritanopia (blue-blind)
#8D7490
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985bd7;
/* rgb */ color: rgb(152, 91, 215);
/* oklch */ color: oklch(59.6% 0.186 304.0);
Tailwind
colors: {
  custom: {
    50: '#ba8ce4',
    500: '#985bd7',
    950: '#000000',
  },
}
SCSS
$custom: #985bd7;
$custom-light: #ba8ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#985bd7",
  "rgb": {
    "r": 152,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 269.516,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.59621,
    "c": 0.18579,
    "h": 304
  },
  "luminance": 0.19064
}

Semantic roles & 50–950 ramp

primary
#985BD7
secondary
#C7DFAF
accent
#E44495
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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