#985CEB#985CEB

#985CEB is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.207 H 299.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#985CEB
RGBrgb(152, 92, 235)
HSLhsl(265, 78%, 64%)
HSVhsv(265, 61%, 92%)
CMYKcmyk(35.3%, 60.9%, 0%, 7.8%)
CIE-LABlab(52.21, 53.00, -63.50)
CIE-LCHlch(52.21, 82.71, 309.85°)
OKLaboklab(61.07% 0.1022 -0.1804)
OKLCHoklch(61.07% 0.207 299.5)
XYZxyz(31.7678, 20.3276, 80.8311)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CEB #AFEB5C
analogous
#5C68EB #985CEB #E05CEB
triadic
#985CEB #EB985C #5CEB98
tetradic
#985CEB #EB5C68 #AFEB5C #5CEBE0
square
#985CEB #EB5C68 #AFEB5C #5CEBE0
split-complementary
#985CEB #EBE05C #68EB5C
monochromatic
#5916B6 #7625E4 #985CEB #BA93F2 #DDC9F8

Accessibility & contrast

On white

4.15
#985CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##985CEB#FFFFFF#000000##000000
##985CEB1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#247BE8
Tritanopia (blue-blind)
#867B9B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985ceb;
/* rgb */ color: rgb(152, 92, 235);
/* oklch */ color: oklch(61.1% 0.207 299.5);
Tailwind
colors: {
  custom: {
    50: '#bb8df2',
    500: '#985ceb',
    950: '#000000',
  },
}
SCSS
$custom: #985ceb;
$custom-light: #bb8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#985ceb",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 265.175,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.20734,
    "h": 299.5
  },
  "luminance": 0.20328
}

Semantic roles & 50–950 ramp

primary
#985CEB
secondary
#D5EAB8
accent
#DA0B83
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #985CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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