#985FE3#985FE3

#985FE3 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 61.0% C 0.194 H 300.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#985FE3
RGBrgb(152, 95, 227)
HSLhsl(266, 70%, 63%)
HSVhsv(266, 58%, 89%)
CMYKcmyk(33%, 58.1%, 0%, 11%)
CIE-LABlab(52.29, 49.45, -58.86)
CIE-LCHlch(52.29, 76.87, 310.03°)
OKLaboklab(60.98% 0.099 -0.1668)
OKLCHoklch(60.98% 0.194 300.7)
XYZxyz(30.9029, 20.4057, 74.9688)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FE3 #AAE35F
analogous
#5F68E3 #985FE3 #DA5FE3
triadic
#985FE3 #E3985F #5FE398
tetradic
#985FE3 #E35F68 #AAE35F #5FE3DA
square
#985FE3 #E35F68 #AAE35F #5FE3DA
split-complementary
#985FE3 #E3DA5F #68E35F
monochromatic
#5A1EAA #762BDA #985FE3 #BA93EC #DBC7F5

Accessibility & contrast

On white

4.13
#985FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#985FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FE3
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FE3#FFFFFF#000000##000000
##985FE31.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7CE7
Deuteranopia (green-blind)
#377CE0
Tritanopia (blue-blind)
#887A98
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985fe3;
/* rgb */ color: rgb(152, 95, 227);
/* oklch */ color: oklch(61.0% 0.194 300.7);
Tailwind
colors: {
  custom: {
    50: '#ba8fec',
    500: '#985fe3',
    950: '#000000',
  },
}
SCSS
$custom: #985fe3;
$custom-light: #ba8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#985fe3",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 265.909,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60975,
    "c": 0.19392,
    "h": 300.7
  },
  "luminance": 0.20406
}

Semantic roles & 50–950 ramp

primary
#985FE3
secondary
#D2E7B7
accent
#D21380
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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