#985BEF#985BEF

#985BEF is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.213 H 298.9°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#985BEF
RGBrgb(152, 91, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 62%, 94%)
CMYKcmyk(36.4%, 61.9%, 0%, 6.3%)
CIE-LABlab(52.27, 54.51, -65.63)
CIE-LCHlch(52.27, 85.31, 309.71°)
OKLaboklab(61.21% 0.1031 -0.1866)
OKLCHoklch(61.21% 0.213 298.9)
XYZxyz(32.2661, 20.3892, 83.8802)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985BEF #B2EF5B
analogous
#5B68EF #985BEF #E25BEF
triadic
#985BEF #EF985B #5BEF98
tetradic
#985BEF #EF5B68 #B2EF5B #5BEFE2
square
#985BEF #EF5B68 #B2EF5B #5BEFE2
split-complementary
#985BEF #EFE25B #68EF5B
monochromatic
#5912BD #7523EA #985BEF #BB93F4 #DECBFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##985BEF#FFFFFF#000000##000000
##985BEF1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#177BEC
Tritanopia (blue-blind)
#847C9D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #985bef;
/* rgb */ color: rgb(152, 91, 239);
/* oklch */ color: oklch(61.2% 0.213 298.9);
Tailwind
colors: {
  custom: {
    50: '#bc8cf5',
    500: '#985bef',
    950: '#000000',
  },
}
SCSS
$custom: #985bef;
$custom-light: #bc8cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#985bef",
  "rgb": {
    "r": 152,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 264.73,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61206,
    "c": 0.21324,
    "h": 298.9
  },
  "luminance": 0.2039
}

Semantic roles & 50–950 ramp

primary
#985BEF
secondary
#D7ECBA
accent
#DF0786
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #985BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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