#985EC4#985EC4

#985EC4 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 58.9% C 0.159 H 308.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#985EC4
RGBrgb(152, 94, 196)
HSLhsl(274, 46%, 57%)
HSVhsv(274, 52%, 77%)
CMYKcmyk(22.4%, 52%, 0%, 23.1%)
CIE-LABlab(50.30, 42.58, -44.40)
CIE-LCHlch(50.30, 61.51, 313.80°)
OKLaboklab(58.93% 0.0991 -0.1244)
OKLCHoklch(58.93% 0.159 308.5)
XYZxyz(26.9135, 18.6667, 54.3991)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EC4 #8AC45E
analogous
#655EC4 #985EC4 #C45EBD
triadic
#985EC4 #C4985E #5EC498
tetradic
#985EC4 #C4655E #8AC45E #5EBDC4
square
#985EC4 #C4655E #8AC45E #5EBDC4
split-complementary
#985EC4 #BDC45E #5EC465
monochromatic
#592D7B #7A3DA7 #985EC4 #B58BD4 #D1B8E5

Accessibility & contrast

On white

4.44
#985EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#985EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EC4
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EC4#FFFFFF#000000##000000
##985EC41.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4175C7
Deuteranopia (green-blind)
#5378C1
Tritanopia (blue-blind)
#927088
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985ec4;
/* rgb */ color: rgb(152, 94, 196);
/* oklch */ color: oklch(58.9% 0.159 308.5);
Tailwind
colors: {
  custom: {
    50: '#b98dd6',
    500: '#985ec4',
    950: '#000000',
  },
}
SCSS
$custom: #985ec4;
$custom-light: #b98dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#985ec4",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 196
  },
  "hsl": {
    "h": 274.118,
    "s": 46.364,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58928,
    "c": 0.15909,
    "h": 308.5
  },
  "luminance": 0.18666
}

Semantic roles & 50–950 ramp

primary
#985EC4
secondary
#BCD4AA
accent
#D6528B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #985EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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