#985FD2#985FD2

#985FD2 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 59.9% C 0.174 H 304.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#985FD2
RGBrgb(152, 95, 210)
HSLhsl(270, 56%, 60%)
HSVhsv(270, 55%, 82%)
CMYKcmyk(27.6%, 54.8%, 0%, 17.6%)
CIE-LABlab(51.28, 45.32, -50.84)
CIE-LCHlch(51.28, 68.11, 311.71°)
OKLaboklab(59.91% 0.0987 -0.1433)
OKLCHoklch(59.91% 0.174 304.6)
XYZxyz(28.6714, 19.5131, 63.2162)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FD2 #99D25F
analogous
#5F60D2 #985FD2 #D25FD2
triadic
#985FD2 #D2985F #5FD298
tetradic
#985FD2 #D25F60 #99D25F #5FD2D2
square
#985FD2 #D25F60 #99D25F #5FD2D2
split-complementary
#985FD2 #D2D25F #60D25F
monochromatic
#5B288F #7936BE #985FD2 #B78FDF #D5BFED

Accessibility & contrast

On white

4.28
#985FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#985FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FD2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FD2#FFFFFF#000000##000000
##985FD21.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3579D6
Deuteranopia (green-blind)
#497ACF
Tritanopia (blue-blind)
#8E758F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985fd2;
/* rgb */ color: rgb(152, 95, 210);
/* oklch */ color: oklch(59.9% 0.174 304.6);
Tailwind
colors: {
  custom: {
    50: '#b98ee0',
    500: '#985fd2',
    950: '#000000',
  },
}
SCSS
$custom: #985fd2;
$custom-light: #b98ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#985fd2",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 269.739,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59908,
    "c": 0.17397,
    "h": 304.6
  },
  "luminance": 0.19513
}

Semantic roles & 50–950 ramp

primary
#985FD2
secondary
#C7DDB0
accent
#DF4895
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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