#985ED2#985ED2

#985ED2 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.175 H 304.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#985ED2
RGBrgb(152, 94, 210)
HSLhsl(270, 56%, 60%)
HSVhsv(270, 55%, 82%)
CMYKcmyk(27.6%, 55.2%, 0%, 17.6%)
CIE-LABlab(51.08, 45.86, -51.17)
CIE-LCHlch(51.08, 68.72, 311.87°)
OKLaboklab(59.76% 0.1 -0.1442)
OKLCHoklch(59.76% 0.175 304.7)
XYZxyz(28.5819, 19.3341, 63.1864)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985ED2 #98D25E
analogous
#5E5ED2 #985ED2 #D25ED2
triadic
#985ED2 #D2985E #5ED298
tetradic
#985ED2 #D25E5E #98D25E #5ED2D2
square
#985ED2 #D25E5E #98D25E #5ED2D2
split-complementary
#985ED2 #D2D25E #5ED25E
monochromatic
#5B288E #7935BE #985ED2 #B78EDF #D5BEED

Accessibility & contrast

On white

4.31
#985ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#985ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985ED2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985ED2#FFFFFF#000000##000000
##985ED21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3378D6
Deuteranopia (green-blind)
#487ACF
Tritanopia (blue-blind)
#8E748F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #985ed2;
/* rgb */ color: rgb(152, 94, 210);
/* oklch */ color: oklch(59.8% 0.175 304.7);
Tailwind
colors: {
  custom: {
    50: '#b98ee0',
    500: '#985ed2',
    950: '#000000',
  },
}
SCSS
$custom: #985ed2;
$custom-light: #b98ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#985ed2",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 56.311,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59757,
    "c": 0.17549,
    "h": 304.7
  },
  "luminance": 0.19334
}

Semantic roles & 50–950 ramp

primary
#985ED2
secondary
#C6DCAF
accent
#E04894
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #985ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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