#9841C9#9841C9

#9841C9 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.3% C 0.207 H 310.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9841C9
RGBrgb(152, 65, 201)
HSLhsl(278, 56%, 52%)
HSVhsv(278, 68%, 79%)
CMYKcmyk(24.4%, 67.7%, 0%, 21.2%)
CIE-LABlab(45.18, 58.25, -55.46)
CIE-LCHlch(45.18, 80.43, 316.41°)
OKLaboklab(55.3% 0.135 -0.1567)
OKLCHoklch(55.3% 0.207 310.8)
XYZxyz(25.3798, 14.6736, 56.7423)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841C9 #72C941
analogous
#5441C9 #9841C9 #C941B6
triadic
#9841C9 #C99841 #41C998
tetradic
#9841C9 #C95441 #72C941 #41B6C9
square
#9841C9 #C95441 #72C941 #41B6C9
split-complementary
#9841C9 #B6C941 #41C954
monochromatic
#532070 #762D9F #9841C9 #B271D7 #CCA0E4

Accessibility & contrast

On white

5.34
#9841C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9841C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841C9
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841C9#FFFFFF#000000##FFFFFF
##9841C91.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CD
Deuteranopia (green-blind)
#2E6CC6
Tritanopia (blue-blind)
#925E80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9841c9;
/* rgb */ color: rgb(152, 65, 201);
/* oklch */ color: oklch(55.3% 0.207 310.8);
Tailwind
colors: {
  custom: {
    50: '#ba7cda',
    500: '#9841c9',
    950: '#000000',
  },
}
SCSS
$custom: #9841c9;
$custom-light: #ba7cda;
$custom-dark: #000000;
JSON
{
  "hex": "#9841c9",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 201
  },
  "hsl": {
    "h": 278.382,
    "s": 55.738,
    "l": 52.157
  },
  "oklch": {
    "l": 0.553,
    "c": 0.2068,
    "h": 310.8
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#9841C9
secondary
#ABD195
accent
#DF497F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841C9

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

Preview Lab → · Contrast checker → · Palette generator →

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