#985CD7#985CD7

#985CD7 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.8% C 0.184 H 303.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#985CD7
RGBrgb(152, 92, 215)
HSLhsl(269, 61%, 60%)
HSVhsv(269, 57%, 84%)
CMYKcmyk(29.3%, 57.2%, 0%, 15.7%)
CIE-LABlab(50.96, 48.13, -54.20)
CIE-LCHlch(50.96, 72.48, 311.60°)
OKLaboklab(59.77% 0.1026 -0.1531)
OKLCHoklch(59.77% 0.184 303.8)
XYZxyz(29.0391, 19.2361, 66.4599)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CD7 #9BD75C
analogous
#5C5ED7 #985CD7 #D55CD7
triadic
#985CD7 #D7985C #5CD798
tetradic
#985CD7 #D75C5E #9BD75C #5CD7D5
square
#985CD7 #D75C5E #9BD75C #5CD7D5
split-complementary
#985CD7 #D7D55C #5ED75C
monochromatic
#5B2494 #7930C5 #985CD7 #B78DE3 #D6BEEF

Accessibility & contrast

On white

4.33
#985CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#985CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CD7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CD7#FFFFFF#000000##000000
##985CD71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2878DB
Deuteranopia (green-blind)
#4179D4
Tritanopia (blue-blind)
#8D7491
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #985cd7;
/* rgb */ color: rgb(152, 92, 215);
/* oklch */ color: oklch(59.8% 0.184 303.8);
Tailwind
colors: {
  custom: {
    50: '#ba8ce4',
    500: '#985cd7',
    950: '#000000',
  },
}
SCSS
$custom: #985cd7;
$custom-light: #ba8ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#985cd7",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 269.268,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59768,
    "c": 0.18431,
    "h": 303.8
  },
  "luminance": 0.19236
}

Semantic roles & 50–950 ramp

primary
#985CD7
secondary
#C8DFB0
accent
#C81D75
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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