#985EDD#985EDD

#985EDD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.4% C 0.188 H 302.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#985EDD
RGBrgb(152, 94, 221)
HSLhsl(267, 65%, 62%)
HSVhsv(267, 57%, 87%)
CMYKcmyk(31.2%, 57.5%, 0%, 13.3%)
CIE-LABlab(51.73, 48.51, -56.38)
CIE-LCHlch(51.73, 74.38, 310.71°)
OKLaboklab(60.44% 0.1002 -0.1595)
OKLCHoklch(60.44% 0.188 302.1)
XYZxyz(29.9997, 19.9012, 70.6534)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EDD #A3DD5E
analogous
#5E64DD #985EDD #D85EDD
triadic
#985EDD #DD985E #5EDD98
tetradic
#985EDD #DD5E64 #A3DD5E #5EDDD8
square
#985EDD #DD5E64 #A3DD5E #5EDDD8
split-complementary
#985EDD #DDD85E #64DD5E
monochromatic
#5B229F #782CD2 #985EDD #B891E8 #D9C3F2

Accessibility & contrast

On white

4.22
#985EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#985EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EDD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EDD#FFFFFF#000000##000000
##985EDD1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#247AE1
Deuteranopia (green-blind)
#3D7BDA
Tritanopia (blue-blind)
#8B7895
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985edd;
/* rgb */ color: rgb(152, 94, 221);
/* oklch */ color: oklch(60.4% 0.188 302.1);
Tailwind
colors: {
  custom: {
    50: '#ba8ee8',
    500: '#985edd',
    950: '#000000',
  },
}
SCSS
$custom: #985edd;
$custom-light: #ba8ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#985edd",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 267.402,
    "s": 65.128,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60442,
    "c": 0.18835,
    "h": 302.1
  },
  "luminance": 0.19901
}

Semantic roles & 50–950 ramp

primary
#985EDD
secondary
#CDE3B4
accent
#CD197B
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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