#985EC8#985EC8

#985EC8 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.2% C 0.164 H 307.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#985EC8
RGBrgb(152, 94, 200)
HSLhsl(273, 49%, 58%)
HSVhsv(273, 53%, 78%)
CMYKcmyk(24%, 53%, 0%, 21.6%)
CIE-LABlab(50.51, 43.51, -46.35)
CIE-LCHlch(50.51, 63.57, 313.19°)
OKLaboklab(59.16% 0.0995 -0.1301)
OKLCHoklch(59.16% 0.164 307.4)
XYZxyz(27.3748, 18.8512, 56.8289)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EC8 #8EC85E
analogous
#635EC8 #985EC8 #C85EC3
triadic
#985EC8 #C8985E #5EC898
tetradic
#985EC8 #C8635E #8EC85E #5EC3C8
square
#985EC8 #C8635E #8EC85E #5EC3C8
split-complementary
#985EC8 #C3C85E #5EC863
monochromatic
#5A2C80 #7A3BAE #985EC8 #B58CD8 #D2B9E7

Accessibility & contrast

On white

4.40
#985EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#985EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EC8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EC8#FFFFFF#000000##000000
##985EC81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CC
Deuteranopia (green-blind)
#5079C5
Tritanopia (blue-blind)
#91718A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985ec8;
/* rgb */ color: rgb(152, 94, 200);
/* oklch */ color: oklch(59.2% 0.164 307.4);
Tailwind
colors: {
  custom: {
    50: '#b98dd9',
    500: '#985ec8',
    950: '#000000',
  },
}
SCSS
$custom: #985ec8;
$custom-light: #b98dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#985ec8",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 272.83,
    "s": 49.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59159,
    "c": 0.16377,
    "h": 307.4
  },
  "luminance": 0.18851
}

Semantic roles & 50–950 ramp

primary
#985EC8
secondary
#BFD6AC
accent
#D94F8D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C15
muted
#817D83

Preview Lab

Preview with #985EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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