#985AEB#985AEB

#985AEB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.8% C 0.210 H 299.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#985AEB
RGBrgb(152, 90, 235)
HSLhsl(266, 78%, 64%)
HSVhsv(266, 62%, 92%)
CMYKcmyk(35.3%, 61.7%, 0%, 7.8%)
CIE-LABlab(51.82, 54.04, -64.12)
CIE-LCHlch(51.82, 83.85, 310.12°)
OKLaboklab(60.79% 0.1045 -0.1822)
OKLCHoklch(60.79% 0.21 299.8)
XYZxyz(31.5968, 19.9856, 80.7741)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985AEB #ADEB5A
analogous
#5A64EB #985AEB #E05AEB
triadic
#985AEB #EB985A #5AEB98
tetradic
#985AEB #EB5A64 #ADEB5A #5AEBE0
square
#985AEB #EB5A64 #ADEB5A #5AEBE0
split-complementary
#985AEB #EBE05A #64EB5A
monochromatic
#5A16B5 #7623E4 #985AEB #BA91F2 #DCC7F8

Accessibility & contrast

On white

4.20
#985AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#985AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985AEB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985AEB#FFFFFF#000000##000000
##985AEB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#1F7AE8
Tritanopia (blue-blind)
#867A9A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985aeb;
/* rgb */ color: rgb(152, 90, 235);
/* oklch */ color: oklch(60.8% 0.210 299.8);
Tailwind
colors: {
  custom: {
    50: '#bb8cf2',
    500: '#985aeb',
    950: '#000000',
  },
}
SCSS
$custom: #985aeb;
$custom-light: #bb8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#985aeb",
  "rgb": {
    "r": 152,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 265.655,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60793,
    "c": 0.21004,
    "h": 299.8
  },
  "luminance": 0.19986
}

Semantic roles & 50–950 ramp

primary
#985AEB
secondary
#D4EAB7
accent
#DB0B82
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #985AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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