#9841CF#9841CF

#9841CF is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.213 H 309.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9841CF
RGBrgb(152, 65, 207)
HSLhsl(277, 60%, 53%)
HSVhsv(277, 69%, 81%)
CMYKcmyk(26.6%, 68.6%, 0%, 18.8%)
CIE-LABlab(45.58, 59.55, -58.28)
CIE-LCHlch(45.58, 83.32, 315.62°)
OKLaboklab(55.71% 0.1344 -0.1649)
OKLCHoklch(55.71% 0.213 309.2)
XYZxyz(26.0994, 14.9615, 60.5323)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841CF #78CF41
analogous
#5141CF #9841CF #CF41BF
triadic
#9841CF #CF9841 #41CF98
tetradic
#9841CF #CF5141 #78CF41 #41BFCF
square
#9841CF #CF5141 #78CF41 #41BFCF
split-complementary
#9841CF #BFCF41 #41CF51
monochromatic
#551E77 #782BA8 #9841CF #B272DB #CDA3E8

Accessibility & contrast

On white

5.26
#9841CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9841CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841CF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841CF#FFFFFF#000000##FFFFFF
##9841CF1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#256DCC
Tritanopia (blue-blind)
#906083
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9841cf;
/* rgb */ color: rgb(152, 65, 207);
/* oklch */ color: oklch(55.7% 0.213 309.2);
Tailwind
colors: {
  custom: {
    50: '#bb7cde',
    500: '#9841cf',
    950: '#000000',
  },
}
SCSS
$custom: #9841cf;
$custom-light: #bb7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9841cf",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 276.761,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.21275,
    "h": 309.2
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#9841CF
secondary
#AFD497
accent
#E34582
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841CF

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

Preview Lab → · Contrast checker → · Palette generator →

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