#985DC8#985DC8

#985DC8 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.0% C 0.165 H 307.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#985DC8
RGBrgb(152, 93, 200)
HSLhsl(273, 49%, 57%)
HSVhsv(273, 54%, 78%)
CMYKcmyk(24%, 53.5%, 0%, 21.6%)
CIE-LABlab(50.30, 44.05, -46.68)
CIE-LCHlch(50.30, 64.18, 313.34°)
OKLaboklab(59.01% 0.1008 -0.1311)
OKLCHoklch(59.01% 0.165 307.6)
XYZxyz(27.2865, 18.6746, 56.7995)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985DC8 #8DC85D
analogous
#625DC8 #985DC8 #C85DC3
triadic
#985DC8 #C8985D #5DC898
tetradic
#985DC8 #C8625D #8DC85D #5DC3C8
square
#985DC8 #C8625D #8DC85D #5DC3C8
split-complementary
#985DC8 #C3C85D #5DC862
monochromatic
#5A2B7F #7A3BAD #985DC8 #B58BD8 #D2B8E7

Accessibility & contrast

On white

4.44
#985DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#985DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985DC8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985DC8#FFFFFF#000000##000000
##985DC81.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CC
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#91708A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #985dc8;
/* rgb */ color: rgb(152, 93, 200);
/* oklch */ color: oklch(59.0% 0.165 307.6);
Tailwind
colors: {
  custom: {
    50: '#b98dd9',
    500: '#985dc8',
    950: '#000000',
  },
}
SCSS
$custom: #985dc8;
$custom-light: #b98dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#985dc8",
  "rgb": {
    "r": 152,
    "g": 93,
    "b": 200
  },
  "hsl": {
    "h": 273.084,
    "s": 49.309,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59006,
    "c": 0.16535,
    "h": 307.6
  },
  "luminance": 0.18674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #985DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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