#985FDB#985FDB

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

Color values

HEX#985FDB
RGBrgb(152, 95, 219)
HSLhsl(268, 63%, 62%)
HSVhsv(268, 57%, 86%)
CMYKcmyk(30.6%, 56.6%, 0%, 14.1%)
CIE-LABlab(51.81, 47.49, -55.12)
CIE-LCHlch(51.81, 72.75, 310.75°)
OKLaboklab(60.46% 0.099 -0.1558)
OKLCHoklch(60.46% 0.185 302.4)
XYZxyz(29.8244, 19.9743, 69.2883)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985FDB #A2DB5F
analogous
#5F64DB #985FDB #D65FDB
triadic
#985FDB #DB985F #5FDB98
tetradic
#985FDB #DB5F64 #A2DB5F #5FDBD6
square
#985FDB #DB5F64 #A2DB5F #5FDBD6
split-complementary
#985FDB #DBD65F #64DB5F
monochromatic
#5B239C #782ECE #985FDB #B891E6 #D8C3F1

Accessibility & contrast

On white

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

On black

4.99
#985FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985FDB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985FDB#FFFFFF#000000##000000
##985FDB1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7ADF
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#8B7894
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985fdb;
/* rgb */ color: rgb(152, 95, 219);
/* oklch */ color: oklch(60.5% 0.185 302.4);
Tailwind
colors: {
  custom: {
    50: '#ba8ee7',
    500: '#985fdb',
    950: '#000000',
  },
}
SCSS
$custom: #985fdb;
$custom-light: #ba8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#985fdb",
  "rgb": {
    "r": 152,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 267.581,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60464,
    "c": 0.18455,
    "h": 302.4
  },
  "luminance": 0.19974
}

Semantic roles & 50–950 ramp

primary
#985FDB
secondary
#CDE2B4
accent
#CB1A7A
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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