#985ECC#985ECC

#985ECC is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.4% C 0.168 H 306.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#985ECC
RGBrgb(152, 94, 204)
HSLhsl(272, 52%, 58%)
HSVhsv(272, 54%, 80%)
CMYKcmyk(25.5%, 53.9%, 0%, 20%)
CIE-LABlab(50.73, 44.44, -48.29)
CIE-LCHlch(50.73, 65.63, 312.62°)
OKLaboklab(59.4% 0.0997 -0.1358)
OKLCHoklch(59.4% 0.168 306.3)
XYZxyz(27.8484, 19.0407, 59.3232)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985ECC #92CC5E
analogous
#615ECC #985ECC #CC5EC9
triadic
#985ECC #CC985E #5ECC98
tetradic
#985ECC #CC615E #92CC5E #5EC9CC
square
#985ECC #CC615E #92CC5E #5EC9CC
split-complementary
#985ECC #C9CC5E #5ECC61
monochromatic
#5A2A85 #7A39B4 #985ECC #B68CDB #D3BBE9

Accessibility & contrast

On white

4.37
#985ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#985ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985ECC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985ECC#FFFFFF#000000##000000
##985ECC1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A77D0
Deuteranopia (green-blind)
#4D79C9
Tritanopia (blue-blind)
#90728C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985ecc;
/* rgb */ color: rgb(152, 94, 204);
/* oklch */ color: oklch(59.4% 0.168 306.3);
Tailwind
colors: {
  custom: {
    50: '#b98edc',
    500: '#985ecc',
    950: '#000000',
  },
}
SCSS
$custom: #985ecc;
$custom-light: #b98edc;
$custom-dark: #000000;
JSON
{
  "hex": "#985ecc",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 271.636,
    "s": 51.887,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59395,
    "c": 0.16845,
    "h": 306.3
  },
  "luminance": 0.1904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #985ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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