#985EDC#985EDC

#985EDC is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.4% C 0.187 H 302.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#985EDC
RGBrgb(152, 94, 220)
HSLhsl(268, 64%, 62%)
HSVhsv(268, 57%, 86%)
CMYKcmyk(30.9%, 57.3%, 0%, 13.7%)
CIE-LABlab(51.66, 48.27, -55.91)
CIE-LCHlch(51.66, 73.86, 310.80°)
OKLaboklab(60.38% 0.1002 -0.1581)
OKLCHoklch(60.38% 0.187 302.4)
XYZxyz(29.8669, 19.8481, 69.9539)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EDC #A2DC5E
analogous
#5E63DC #985EDC #D75EDC
triadic
#985EDC #DC985E #5EDC98
tetradic
#985EDC #DC5E63 #A2DC5E #5EDCD7
square
#985EDC #DC5E63 #A2DC5E #5EDCD7
split-complementary
#985EDC #DCD75E #63DC5E
monochromatic
#5B229D #782DD0 #985EDC #B890E7 #D8C3F2

Accessibility & contrast

On white

4.23
#985EDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#985EDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EDC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EDC#FFFFFF#000000##000000
##985EDC1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#267AE0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#8B7794
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985edc;
/* rgb */ color: rgb(152, 94, 220);
/* oklch */ color: oklch(60.4% 0.187 302.4);
Tailwind
colors: {
  custom: {
    50: '#ba8ee7',
    500: '#985edc',
    950: '#000000',
  },
}
SCSS
$custom: #985edc;
$custom-light: #ba8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#985edc",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 220
  },
  "hsl": {
    "h": 267.619,
    "s": 64.286,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60379,
    "c": 0.1872,
    "h": 302.4
  },
  "luminance": 0.19848
}

Semantic roles & 50–950 ramp

primary
#985EDC
secondary
#CDE2B3
accent
#CC197A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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