#9841CA#9841CA

#9841CA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.208 H 310.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9841CA
RGBrgb(152, 65, 202)
HSLhsl(278, 56%, 52%)
HSVhsv(278, 68%, 79%)
CMYKcmyk(24.8%, 67.8%, 0%, 20.8%)
CIE-LABlab(45.25, 58.47, -55.93)
CIE-LCHlch(45.25, 80.91, 316.27°)
OKLaboklab(55.37% 0.1349 -0.158)
OKLCHoklch(55.37% 0.208 310.5)
XYZxyz(25.4978, 14.7208, 57.3639)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841CA #73CA41
analogous
#5341CA #9841CA #CA41B8
triadic
#9841CA #CA9841 #41CA98
tetradic
#9841CA #CA5341 #73CA41 #41B8CA
square
#9841CA #CA5341 #73CA41 #41B8CA
split-complementary
#9841CA #B8CA41 #41CA53
monochromatic
#532071 #772DA1 #9841CA #B271D7 #CCA1E5

Accessibility & contrast

On white

5.32
#9841CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9841CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841CA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841CA#FFFFFF#000000##FFFFFF
##9841CA1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#2D6DC7
Tritanopia (blue-blind)
#915E80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9841ca;
/* rgb */ color: rgb(152, 65, 202);
/* oklch */ color: oklch(55.4% 0.208 310.5);
Tailwind
colors: {
  custom: {
    50: '#ba7cdb',
    500: '#9841ca',
    950: '#000000',
  },
}
SCSS
$custom: #9841ca;
$custom-light: #ba7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9841ca",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 278.102,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.20779,
    "h": 310.5
  },
  "luminance": 0.1472
}

Semantic roles & 50–950 ramp

primary
#9841CA
secondary
#ABD196
accent
#E0487F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841CA

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

Preview Lab → · Contrast checker → · Palette generator →

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