#985EC9#985EC9

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

Color values

HEX#985EC9
RGBrgb(152, 94, 201)
HSLhsl(273, 50%, 58%)
HSVhsv(273, 53%, 79%)
CMYKcmyk(24.4%, 53.2%, 0%, 21.2%)
CIE-LABlab(50.57, 43.74, -46.84)
CIE-LCHlch(50.57, 64.08, 313.04°)
OKLaboklab(59.22% 0.0995 -0.1315)
OKLCHoklch(59.22% 0.165 307.1)
XYZxyz(27.4921, 18.8981, 57.4464)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EC9 #8FC95E
analogous
#625EC9 #985EC9 #C95EC5
triadic
#985EC9 #C9985E #5EC998
tetradic
#985EC9 #C9625E #8FC95E #5EC5C9
square
#985EC9 #C9625E #8FC95E #5EC5C9
split-complementary
#985EC9 #C5C95E #5EC962
monochromatic
#5A2B81 #7A3BAF #985EC9 #B58CD8 #D3BAE8

Accessibility & contrast

On white

4.39
#985EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#985EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EC9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EC9#FFFFFF#000000##000000
##985EC91.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CD
Deuteranopia (green-blind)
#4F79C6
Tritanopia (blue-blind)
#91718B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985ec9;
/* rgb */ color: rgb(152, 94, 201);
/* oklch */ color: oklch(59.2% 0.165 307.1);
Tailwind
colors: {
  custom: {
    50: '#b98dda',
    500: '#985ec9',
    950: '#000000',
  },
}
SCSS
$custom: #985ec9;
$custom-light: #b98dda;
$custom-dark: #000000;
JSON
{
  "hex": "#985ec9",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 272.523,
    "s": 49.767,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59218,
    "c": 0.16495,
    "h": 307.1
  },
  "luminance": 0.18898
}

Semantic roles & 50–950 ramp

primary
#985EC9
secondary
#C0D7AC
accent
#D94F8E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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