#985FDC#985FDC

#985FDC is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.5% C 0.186 H 302.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#985FDC
RGBrgb(152, 95, 220)
HSLhsl(267, 64%, 62%)
HSVhsv(267, 57%, 86%)
CMYKcmyk(30.9%, 56.8%, 0%, 13.7%)
CIE-LABlab(51.87, 47.73, -55.59)
CIE-LCHlch(51.87, 73.27, 310.65°)
OKLaboklab(60.53% 0.099 -0.1572)
OKLCHoklch(60.53% 0.186 302.2)
XYZxyz(29.9564, 20.0271, 69.9837)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FDC #A3DC5F
analogous
#5F65DC #985FDC #D75FDC
triadic
#985FDC #DC985F #5FDC98
tetradic
#985FDC #DC5F65 #A3DC5F #5FDCD7
square
#985FDC #DC5F65 #A3DC5F #5FDCD7
split-complementary
#985FDC #DCD75F #65DC5F
monochromatic
#5B239E #782ED0 #985FDC #B891E7 #D9C3F2

Accessibility & contrast

On white

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

On black

5.01
#985FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FDC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FDC#FFFFFF#000000##000000
##985FDC1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#287BE0
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#8B7894
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985fdc;
/* rgb */ color: rgb(152, 95, 220);
/* oklch */ color: oklch(60.5% 0.186 302.2);
Tailwind
colors: {
  custom: {
    50: '#ba8ee7',
    500: '#985fdc',
    950: '#000000',
  },
}
SCSS
$custom: #985fdc;
$custom-light: #ba8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#985fdc",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 267.36,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60527,
    "c": 0.18572,
    "h": 302.2
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#985FDC
secondary
#CDE3B4
accent
#CC1A7B
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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