#9841CD#9841CD

#9841CD is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.211 H 309.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9841CD
RGBrgb(152, 65, 205)
HSLhsl(277, 58%, 53%)
HSVhsv(277, 68%, 80%)
CMYKcmyk(25.9%, 68.3%, 0%, 19.6%)
CIE-LABlab(45.45, 59.12, -57.34)
CIE-LCHlch(45.45, 82.36, 315.87°)
OKLaboklab(55.57% 0.1346 -0.1622)
OKLCHoklch(55.57% 0.211 309.7)
XYZxyz(25.8565, 14.8643, 59.2528)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841CD #76CD41
analogous
#5241CD #9841CD #CD41BC
triadic
#9841CD #CD9841 #41CD98
tetradic
#9841CD #CD5241 #76CD41 #41BCCD
square
#9841CD #CD5241 #76CD41 #41BCCD
split-complementary
#9841CD #BCCD41 #41CD52
monochromatic
#541F75 #772CA5 #9841CD #B271DA #CDA2E6

Accessibility & contrast

On white

5.29
#9841CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9841CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841CD
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841CD#FFFFFF#000000##FFFFFF
##9841CD1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#915F82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9841cd;
/* rgb */ color: rgb(152, 65, 205);
/* oklch */ color: oklch(55.6% 0.211 309.7);
Tailwind
colors: {
  custom: {
    50: '#bb7cdd',
    500: '#9841cd',
    950: '#000000',
  },
}
SCSS
$custom: #9841cd;
$custom-light: #bb7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9841cd",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 277.286,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55573,
    "c": 0.21077,
    "h": 309.7
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#9841CD
secondary
#AED397
accent
#E24681
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841CD

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

Preview Lab → · Contrast checker → · Palette generator →

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