#985FE5#985FE5

#985FE5 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.1% C 0.196 H 300.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#985FE5
RGBrgb(152, 95, 229)
HSLhsl(266, 72%, 64%)
HSVhsv(266, 59%, 90%)
CMYKcmyk(33.6%, 58.5%, 0%, 10.2%)
CIE-LABlab(52.42, 49.94, -59.79)
CIE-LCHlch(52.42, 77.90, 309.87°)
OKLaboklab(61.11% 0.0989 -0.1695)
OKLCHoklch(61.11% 0.196 300.3)
XYZxyz(31.1806, 20.5167, 76.4310)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FE5 #ACE55F
analogous
#5F69E5 #985FE5 #DB5FE5
triadic
#985FE5 #E5985F #5FE598
tetradic
#985FE5 #E55F69 #ACE55F #5FE5DB
square
#985FE5 #E55F69 #ACE55F #5FE5DB
split-complementary
#985FE5 #E5DB5F #69E55F
monochromatic
#5A1CAD #762ADC #985FE5 #BA94EE #DCC8F6

Accessibility & contrast

On white

4.11
#985FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#985FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FE5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FE5#FFFFFF#000000##000000
##985FE51.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#157DE9
Deuteranopia (green-blind)
#357CE2
Tritanopia (blue-blind)
#887B99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985fe5;
/* rgb */ color: rgb(152, 95, 229);
/* oklch */ color: oklch(61.1% 0.196 300.3);
Tailwind
colors: {
  custom: {
    50: '#bb8fee',
    500: '#985fe5',
    950: '#000000',
  },
}
SCSS
$custom: #985fe5;
$custom-light: #bb8fee;
$custom-dark: #000000;
JSON
{
  "hex": "#985fe5",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 265.522,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61105,
    "c": 0.19625,
    "h": 300.3
  },
  "luminance": 0.20517
}

Semantic roles & 50–950 ramp

primary
#985FE5
secondary
#D3E8B8
accent
#D41181
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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