#985FE4#985FE4

#985FE4 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.0% C 0.195 H 300.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#985FE4
RGBrgb(152, 95, 228)
HSLhsl(266, 71%, 63%)
HSVhsv(266, 58%, 89%)
CMYKcmyk(33.3%, 58.3%, 0%, 10.6%)
CIE-LABlab(52.35, 49.69, -59.32)
CIE-LCHlch(52.35, 77.39, 309.95°)
OKLaboklab(61.04% 0.099 -0.1681)
OKLCHoklch(61.04% 0.195 300.5)
XYZxyz(31.0413, 20.4611, 75.6977)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FE4 #ABE45F
analogous
#5F68E4 #985FE4 #DA5FE4
triadic
#985FE4 #E4985F #5FE498
tetradic
#985FE4 #E45F68 #ABE45F #5FE4DA
square
#985FE4 #E45F68 #ABE45F #5FE4DA
split-complementary
#985FE4 #E4DA5F #68E45F
monochromatic
#5A1DAC #762BDB #985FE4 #BA93ED #DBC8F6

Accessibility & contrast

On white

4.12
#985FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#985FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FE4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FE4#FFFFFF#000000##000000
##985FE41.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#187CE8
Deuteranopia (green-blind)
#367CE1
Tritanopia (blue-blind)
#887B99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985fe4;
/* rgb */ color: rgb(152, 95, 228);
/* oklch */ color: oklch(61.0% 0.195 300.5);
Tailwind
colors: {
  custom: {
    50: '#bb8fed',
    500: '#985fe4',
    950: '#000000',
  },
}
SCSS
$custom: #985fe4;
$custom-light: #bb8fed;
$custom-dark: #000000;
JSON
{
  "hex": "#985fe4",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 228
  },
  "hsl": {
    "h": 265.714,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6104,
    "c": 0.19509,
    "h": 300.5
  },
  "luminance": 0.20461
}

Semantic roles & 50–950 ramp

primary
#985FE4
secondary
#D3E7B8
accent
#D31281
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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