#985FD8#985FD8

#985FD8 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.3% C 0.181 H 303.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#985FD8
RGBrgb(152, 95, 216)
HSLhsl(268, 61%, 61%)
HSVhsv(268, 56%, 85%)
CMYKcmyk(29.6%, 56%, 0%, 15.3%)
CIE-LABlab(51.63, 46.76, -53.70)
CIE-LCHlch(51.63, 71.21, 311.05°)
OKLaboklab(60.28% 0.0989 -0.1516)
OKLCHoklch(60.28% 0.181 303.1)
XYZxyz(29.4330, 19.8177, 67.2270)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FD8 #9FD85F
analogous
#5F62D8 #985FD8 #D45FD8
triadic
#985FD8 #D8985F #5FD898
tetradic
#985FD8 #D85F62 #9FD85F #5FD8D4
square
#985FD8 #D85F62 #9FD85F #5FD8D4
split-complementary
#985FD8 #D8D45F #62D85F
monochromatic
#5B2598 #7931C9 #985FD8 #B890E4 #D7C1F0

Accessibility & contrast

On white

4.23
#985FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#985FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FD8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FD8#FFFFFF#000000##000000
##985FD81.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7ADC
Deuteranopia (green-blind)
#447BD5
Tritanopia (blue-blind)
#8C7792
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985fd8;
/* rgb */ color: rgb(152, 95, 216);
/* oklch */ color: oklch(60.3% 0.181 303.1);
Tailwind
colors: {
  custom: {
    50: '#ba8ee5',
    500: '#985fd8',
    950: '#000000',
  },
}
SCSS
$custom: #985fd8;
$custom-light: #ba8ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#985fd8",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 268.264,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60277,
    "c": 0.18103,
    "h": 303.1
  },
  "luminance": 0.19818
}

Semantic roles & 50–950 ramp

primary
#985FD8
secondary
#CBE0B3
accent
#C81D78
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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