#985ED9#985ED9

#985ED9 is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.2% C 0.184 H 303.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#985ED9
RGBrgb(152, 94, 217)
HSLhsl(268, 62%, 61%)
HSVhsv(268, 57%, 85%)
CMYKcmyk(30%, 56.7%, 0%, 14.9%)
CIE-LABlab(51.49, 47.54, -54.50)
CIE-LCHlch(51.49, 72.32, 311.10°)
OKLaboklab(60.19% 0.1002 -0.154)
OKLCHoklch(60.19% 0.184 303)
XYZxyz(29.4732, 19.6906, 67.8801)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985ED9 #9FD95E
analogous
#5E61D9 #985ED9 #D65ED9
triadic
#985ED9 #D9985E #5ED998
tetradic
#985ED9 #D95E61 #9FD95E #5ED9D6
square
#985ED9 #D95E61 #9FD95E #5ED9D6
split-complementary
#985ED9 #D9D65E #61D95E
monochromatic
#5B2499 #7930CA #985ED9 #B890E5 #D7C1F0

Accessibility & contrast

On white

4.25
#985ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#985ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985ED9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985ED9#FFFFFF#000000##000000
##985ED91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A79DD
Deuteranopia (green-blind)
#417AD6
Tritanopia (blue-blind)
#8C7693
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985ed9;
/* rgb */ color: rgb(152, 94, 217);
/* oklch */ color: oklch(60.2% 0.184 303.0);
Tailwind
colors: {
  custom: {
    50: '#ba8ee5',
    500: '#985ed9',
    950: '#000000',
  },
}
SCSS
$custom: #985ed9;
$custom-light: #ba8ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#985ed9",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 217
  },
  "hsl": {
    "h": 268.293,
    "s": 61.809,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.18369,
    "h": 303
  },
  "luminance": 0.19691
}

Semantic roles & 50–950 ramp

primary
#985ED9
secondary
#CBE1B2
accent
#CA1C78
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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