#985FD4#985FD4

#985FD4 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.0% C 0.176 H 304.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#985FD4
RGBrgb(152, 95, 212)
HSLhsl(269, 58%, 60%)
HSVhsv(269, 55%, 83%)
CMYKcmyk(28.3%, 55.2%, 0%, 16.9%)
CIE-LABlab(51.40, 45.80, -51.80)
CIE-LCHlch(51.40, 69.14, 311.48°)
OKLaboklab(60.03% 0.0988 -0.1461)
OKLCHoklch(60.03% 0.176 304.1)
XYZxyz(28.9222, 19.6134, 64.5367)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FD4 #9BD45F
analogous
#5F60D4 #985FD4 #D25FD4
triadic
#985FD4 #D4985F #5FD498
tetradic
#985FD4 #D45F60 #9BD45F #5FD4D2
square
#985FD4 #D45F60 #9BD45F #5FD4D2
split-complementary
#985FD4 #D4D25F #60D45F
monochromatic
#5B2791 #7934C2 #985FD4 #B78FE1 #D6BFEE

Accessibility & contrast

On white

4.27
#985FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#985FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FD4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FD4#FFFFFF#000000##000000
##985FD41.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3379D8
Deuteranopia (green-blind)
#477AD1
Tritanopia (blue-blind)
#8D7590
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985fd4;
/* rgb */ color: rgb(152, 95, 212);
/* oklch */ color: oklch(60.0% 0.176 304.1);
Tailwind
colors: {
  custom: {
    50: '#b98ee2',
    500: '#985fd4',
    950: '#000000',
  },
}
SCSS
$custom: #985fd4;
$custom-light: #b98ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#985fd4",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 269.231,
    "s": 57.635,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6003,
    "c": 0.17633,
    "h": 304.1
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#985FD4
secondary
#C8DEB1
accent
#C52075
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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