#9841DB#9841DB

#9841DB is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.225 H 306.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9841DB
RGBrgb(152, 65, 219)
HSLhsl(274, 68%, 56%)
HSVhsv(274, 70%, 86%)
CMYKcmyk(30.6%, 70.3%, 0%, 14.1%)
CIE-LABlab(46.41, 62.20, -63.82)
CIE-LCHlch(46.41, 89.12, 314.26°)
OKLaboklab(56.56% 0.1328 -0.1812)
OKLCHoklch(56.56% 0.225 306.2)
XYZxyz(27.6226, 15.5707, 68.5544)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841DB #84DB41
analogous
#4B41DB #9841DB #DB41D1
triadic
#9841DB #DB9841 #41DB98
tetradic
#9841DB #DB4B41 #84DB41 #41D1DB
square
#9841DB #DB4B41 #84DB41 #41D1DB
split-complementary
#9841DB #D1DB41 #41DB4B
monochromatic
#581A88 #7923BB #9841DB #B474E5 #D0A8EE

Accessibility & contrast

On white

5.10
#9841DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9841DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841DB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841DB#FFFFFF#000000##FFFFFF
##9841DB1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#8C658A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9841db;
/* rgb */ color: rgb(152, 65, 219);
/* oklch */ color: oklch(56.6% 0.225 306.2);
Tailwind
colors: {
  custom: {
    50: '#bc7de7',
    500: '#9841db',
    950: '#000000',
  },
}
SCSS
$custom: #9841db;
$custom-light: #bc7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9841db",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 273.896,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5656,
    "c": 0.22468,
    "h": 306.2
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#9841DB
secondary
#B8DC9C
accent
#EB3D89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9841DB

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

Preview Lab → · Contrast checker → · Palette generator →

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