#985ECF#985ECF

#985ECF is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.6% C 0.172 H 305.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#985ECF
RGBrgb(152, 94, 207)
HSLhsl(271, 54%, 59%)
HSVhsv(271, 55%, 81%)
CMYKcmyk(26.6%, 54.6%, 0%, 18.8%)
CIE-LABlab(50.90, 45.15, -49.74)
CIE-LCHlch(50.90, 67.17, 312.23°)
OKLaboklab(59.58% 0.0999 -0.14)
OKLCHoklch(59.58% 0.172 305.5)
XYZxyz(28.2117, 19.1860, 61.2364)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985ECF #95CF5E
analogous
#605ECF #985ECF #CF5ECE
triadic
#985ECF #CF985E #5ECF98
tetradic
#985ECF #CF605E #95CF5E #5ECECF
square
#985ECF #CF605E #95CF5E #5ECECF
split-complementary
#985ECF #CECF5E #5ECF60
monochromatic
#5B298A #7A37B9 #985ECF #B68DDD #D4BCEB

Accessibility & contrast

On white

4.34
#985ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#985ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985ECF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985ECF#FFFFFF#000000##000000
##985ECF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3777D3
Deuteranopia (green-blind)
#4B79CC
Tritanopia (blue-blind)
#8F738E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985ecf;
/* rgb */ color: rgb(152, 94, 207);
/* oklch */ color: oklch(59.6% 0.172 305.5);
Tailwind
colors: {
  custom: {
    50: '#b98ede',
    500: '#985ecf',
    950: '#000000',
  },
}
SCSS
$custom: #985ecf;
$custom-light: #b98ede;
$custom-dark: #000000;
JSON
{
  "hex": "#985ecf",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 270.796,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59575,
    "c": 0.17197,
    "h": 305.5
  },
  "luminance": 0.19186
}

Semantic roles & 50–950 ramp

primary
#985ECF
secondary
#C4DBAE
accent
#DD4A92
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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