#9841CC#9841CC

#9841CC is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.210 H 310.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9841CC
RGBrgb(152, 65, 204)
HSLhsl(278, 58%, 53%)
HSVhsv(278, 68%, 80%)
CMYKcmyk(25.5%, 68.1%, 0%, 20%)
CIE-LABlab(45.38, 58.90, -56.87)
CIE-LCHlch(45.38, 81.87, 316.00°)
OKLaboklab(55.5% 0.1347 -0.1608)
OKLCHoklch(55.5% 0.21 310)
XYZxyz(25.7361, 14.8162, 58.6191)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841CC #75CC41
analogous
#5341CC #9841CC #CC41BA
triadic
#9841CC #CC9841 #41CC98
tetradic
#9841CC #CC5341 #75CC41 #41BACC
square
#9841CC #CC5341 #75CC41 #41BACC
split-complementary
#9841CC #BACC41 #41CC53
monochromatic
#541F74 #772CA4 #9841CC #B271D9 #CCA1E6

Accessibility & contrast

On white

5.30
#9841CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9841CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841CC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841CC#FFFFFF#000000##FFFFFF
##9841CC1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#2A6DC9
Tritanopia (blue-blind)
#915F82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9841cc;
/* rgb */ color: rgb(152, 65, 204);
/* oklch */ color: oklch(55.5% 0.210 310.0);
Tailwind
colors: {
  custom: {
    50: '#bb7cdc',
    500: '#9841cc',
    950: '#000000',
  },
}
SCSS
$custom: #9841cc;
$custom-light: #bb7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9841cc",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 277.554,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55504,
    "c": 0.20977,
    "h": 310
  },
  "luminance": 0.14816
}

Semantic roles & 50–950 ramp

primary
#9841CC
secondary
#ADD396
accent
#E14781
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841CC

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

Preview Lab → · Contrast checker → · Palette generator →

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