#9841CB#9841CB

#9841CB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.209 H 310.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9841CB
RGBrgb(152, 65, 203)
HSLhsl(278, 57%, 53%)
HSVhsv(278, 68%, 80%)
CMYKcmyk(25.1%, 68%, 0%, 20.4%)
CIE-LABlab(45.32, 58.68, -56.40)
CIE-LCHlch(45.32, 81.39, 316.14°)
OKLaboklab(55.44% 0.1348 -0.1594)
OKLCHoklch(55.44% 0.209 310.2)
XYZxyz(25.6166, 14.7683, 57.9895)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841CB #74CB41
analogous
#5341CB #9841CB #CB41B9
triadic
#9841CB #CB9841 #41CB98
tetradic
#9841CB #CB5341 #74CB41 #41B9CB
square
#9841CB #CB5341 #74CB41 #41B9CB
split-complementary
#9841CB #B9CB41 #41CB53
monochromatic
#541F72 #772CA2 #9841CB #B271D8 #CCA1E5

Accessibility & contrast

On white

5.31
#9841CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9841CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841CB#FFFFFF#000000##FFFFFF
##9841CB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#2C6DC8
Tritanopia (blue-blind)
#915E81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9841cb;
/* rgb */ color: rgb(152, 65, 203);
/* oklch */ color: oklch(55.4% 0.209 310.2);
Tailwind
colors: {
  custom: {
    50: '#bb7cdc',
    500: '#9841cb',
    950: '#000000',
  },
}
SCSS
$custom: #9841cb;
$custom-light: #bb7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9841cb",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 277.826,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55436,
    "c": 0.20878,
    "h": 310.2
  },
  "luminance": 0.14768
}

Semantic roles & 50–950 ramp

primary
#9841CB
secondary
#ACD296
accent
#E04880
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841CB

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

Preview Lab → · Contrast checker → · Palette generator →

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