#9851DB#9851DB

#9851DB is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.204 H 304.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#9851DB
RGBrgb(152, 81, 219)
HSLhsl(271, 66%, 59%)
HSVhsv(271, 63%, 86%)
CMYKcmyk(30.6%, 63%, 0%, 14.1%)
CIE-LABlab(49.10, 54.74, -59.47)
CIE-LCHlch(49.10, 80.83, 312.63°)
OKLaboklab(58.49% 0.1157 -0.1685)
OKLCHoklch(58.49% 0.204 304.5)
XYZxyz(28.6747, 17.6749, 68.9050)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851DB #94DB51
analogous
#5351DB #9851DB #DB51D9
triadic
#9851DB #DB9851 #51DB98
tetradic
#9851DB #DB5351 #94DB51 #51D9DB
square
#9851DB #DB5351 #94DB51 #51D9DB
split-complementary
#9851DB #D9DB51 #51DB53
monochromatic
#5A1E93 #7A29C6 #9851DB #B684E5 #D4B6F0

Accessibility & contrast

On white

4.63
#9851DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#9851DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9851DB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851DB#FFFFFF#000000##FFFFFF
##9851DB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2B75D8
Tritanopia (blue-blind)
#8C6E8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9851db;
/* rgb */ color: rgb(152, 81, 219);
/* oklch */ color: oklch(58.5% 0.204 304.5);
Tailwind
colors: {
  custom: {
    50: '#bb86e7',
    500: '#9851db',
    950: '#000000',
  },
}
SCSS
$custom: #9851db;
$custom-light: #bb86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9851db",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 270.87,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58491,
    "c": 0.20441,
    "h": 304.5
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#9851DB
secondary
#C3DFA9
accent
#E93F91
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851DB

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

Preview Lab → · Contrast checker → · Palette generator →

#9851DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva