#985ECD#985ECD

#985ECD is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.5% C 0.170 H 306.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#985ECD
RGBrgb(152, 94, 205)
HSLhsl(271, 53%, 59%)
HSVhsv(271, 54%, 80%)
CMYKcmyk(25.9%, 54.1%, 0%, 19.6%)
CIE-LABlab(50.79, 44.68, -48.77)
CIE-LCHlch(50.79, 66.14, 312.49°)
OKLaboklab(59.46% 0.0998 -0.1372)
OKLCHoklch(59.46% 0.17 306)
XYZxyz(27.9687, 19.0888, 59.9569)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985ECD #93CD5E
analogous
#605ECD #985ECD #CD5ECB
triadic
#985ECD #CD985E #5ECD98
tetradic
#985ECD #CD605E #93CD5E #5ECBCD
square
#985ECD #CD605E #93CD5E #5ECBCD
split-complementary
#985ECD #CBCD5E #5ECD60
monochromatic
#5A2A87 #7A38B5 #985ECD #B68DDC #D4BBEA

Accessibility & contrast

On white

4.36
#985ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#985ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985ECD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985ECD#FFFFFF#000000##000000
##985ECD1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3977D1
Deuteranopia (green-blind)
#4C79CA
Tritanopia (blue-blind)
#8F728D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985ecd;
/* rgb */ color: rgb(152, 94, 205);
/* oklch */ color: oklch(59.5% 0.170 306.0);
Tailwind
colors: {
  custom: {
    50: '#b98edd',
    500: '#985ecd',
    950: '#000000',
  },
}
SCSS
$custom: #985ecd;
$custom-light: #b98edd;
$custom-dark: #000000;
JSON
{
  "hex": "#985ecd",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 271.351,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59455,
    "c": 0.16963,
    "h": 306
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#985ECD
secondary
#C2D9AD
accent
#DC4C91
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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