#985CD8#985CD8

#985CD8 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.185 H 303.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#985CD8
RGBrgb(152, 92, 216)
HSLhsl(269, 61%, 60%)
HSVhsv(269, 57%, 85%)
CMYKcmyk(29.6%, 57.4%, 0%, 15.3%)
CIE-LABlab(51.02, 48.37, -54.67)
CIE-LCHlch(51.02, 73.00, 311.50°)
OKLaboklab(59.83% 0.1026 -0.1545)
OKLCHoklch(59.83% 0.185 303.6)
XYZxyz(29.1679, 19.2876, 67.1387)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CD8 #9CD85C
analogous
#5C5ED8 #985CD8 #D65CD8
triadic
#985CD8 #D8985C #5CD898
tetradic
#985CD8 #D85C5E #9CD85C #5CD8D6
square
#985CD8 #D85C5E #9CD85C #5CD8D6
split-complementary
#985CD8 #D8D65C #5ED85C
monochromatic
#5B2496 #7930C7 #985CD8 #B78DE4 #D6BFF0

Accessibility & contrast

On white

4.32
#985CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#985CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CD8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CD8#FFFFFF#000000##000000
##985CD81.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2678DC
Deuteranopia (green-blind)
#4079D5
Tritanopia (blue-blind)
#8C7591
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985cd8;
/* rgb */ color: rgb(152, 92, 216);
/* oklch */ color: oklch(59.8% 0.185 303.6);
Tailwind
colors: {
  custom: {
    50: '#ba8ce5',
    500: '#985cd8',
    950: '#000000',
  },
}
SCSS
$custom: #985cd8;
$custom-light: #ba8ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#985cd8",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 269.032,
    "s": 61.386,
    "l": 60.392
  },
  "oklch": {
    "l": 0.59831,
    "c": 0.18547,
    "h": 303.6
  },
  "luminance": 0.19288
}

Semantic roles & 50–950 ramp

primary
#985CD8
secondary
#C9E0B0
accent
#C91C76
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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