#985EC2#985EC2

#985EC2 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.8% C 0.157 H 309.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#985EC2
RGBrgb(152, 94, 194)
HSLhsl(275, 45%, 56%)
HSVhsv(275, 52%, 76%)
CMYKcmyk(21.6%, 51.5%, 0%, 23.9%)
CIE-LABlab(50.19, 42.12, -43.42)
CIE-LCHlch(50.19, 60.49, 314.13°)
OKLaboklab(58.81% 0.099 -0.1215)
OKLCHoklch(58.81% 0.157 309.2)
XYZxyz(26.6873, 18.5763, 53.2082)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EC2 #88C25E
analogous
#665EC2 #985EC2 #C25EBA
triadic
#985EC2 #C2985E #5EC298
tetradic
#985EC2 #C2665E #88C25E #5EBAC2
square
#985EC2 #C2665E #88C25E #5EBAC2
split-complementary
#985EC2 #BAC25E #5EC266
monochromatic
#592E78 #7A3EA4 #985EC2 #B48AD3 #D1B7E4

Accessibility & contrast

On white

4.45
#985EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#985EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EC2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EC2#FFFFFF#000000##000000
##985EC21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4275C5
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#926F87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #985ec2;
/* rgb */ color: rgb(152, 94, 194);
/* oklch */ color: oklch(58.8% 0.157 309.2);
Tailwind
colors: {
  custom: {
    50: '#b98dd5',
    500: '#985ec2',
    950: '#000000',
  },
}
SCSS
$custom: #985ec2;
$custom-light: #b98dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#985ec2",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 274.8,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58814,
    "c": 0.15674,
    "h": 309.2
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#985EC2
secondary
#BBD2A9
accent
#D5538A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #985EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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