#985FE2#985FE2

#985FE2 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.9% C 0.193 H 300.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#985FE2
RGBrgb(152, 95, 226)
HSLhsl(266, 69%, 63%)
HSVhsv(266, 58%, 89%)
CMYKcmyk(32.7%, 58%, 0%, 11.4%)
CIE-LABlab(52.23, 49.20, -58.39)
CIE-LCHlch(52.23, 76.36, 310.12°)
OKLaboklab(60.91% 0.099 -0.1654)
OKLCHoklch(60.91% 0.193 300.9)
XYZxyz(30.7653, 20.3506, 74.2440)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FE2 #A9E25F
analogous
#5F67E2 #985FE2 #D95FE2
triadic
#985FE2 #E2985F #5FE298
tetradic
#985FE2 #E25F67 #A9E25F #5FE2D9
square
#985FE2 #E25F67 #A9E25F #5FE2D9
split-complementary
#985FE2 #E2D95F #67E25F
monochromatic
#5A1EA8 #772BD9 #985FE2 #B993EB #DBC7F5

Accessibility & contrast

On white

4.14
#985FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#985FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FE2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FE2#FFFFFF#000000##000000
##985FE21.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7CE6
Deuteranopia (green-blind)
#397CDF
Tritanopia (blue-blind)
#897A98
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985fe2;
/* rgb */ color: rgb(152, 95, 226);
/* oklch */ color: oklch(60.9% 0.193 300.9);
Tailwind
colors: {
  custom: {
    50: '#ba8fec',
    500: '#985fe2',
    950: '#000000',
  },
}
SCSS
$custom: #985fe2;
$custom-light: #ba8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#985fe2",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 266.107,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6091,
    "c": 0.19275,
    "h": 300.9
  },
  "luminance": 0.20351
}

Semantic roles & 50–950 ramp

primary
#985FE2
secondary
#D1E6B7
accent
#D1147F
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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