#9841C8#9841C8

#9841C8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.206 H 311.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9841C8
RGBrgb(152, 65, 200)
HSLhsl(279, 55%, 52%)
HSVhsv(279, 68%, 78%)
CMYKcmyk(24%, 67.5%, 0%, 21.6%)
CIE-LABlab(45.12, 58.03, -54.98)
CIE-LCHlch(45.12, 79.94, 316.55°)
OKLaboklab(55.23% 0.1351 -0.1553)
OKLCHoklch(55.23% 0.206 311)
XYZxyz(25.2626, 14.6267, 56.1248)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841C8 #71C841
analogous
#5541C8 #9841C8 #C841B4
triadic
#9841C8 #C89841 #41C898
tetradic
#9841C8 #C85541 #71C841 #41B4C8
square
#9841C8 #C85541 #71C841 #41B4C8
split-complementary
#9841C8 #B4C841 #41C855
monochromatic
#53206F #762E9E #9841C8 #B270D6 #CBA0E3

Accessibility & contrast

On white

5.35
#9841C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9841C8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841C8#FFFFFF#000000##FFFFFF
##9841C81.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#306CC5
Tritanopia (blue-blind)
#925D7F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9841c8;
/* rgb */ color: rgb(152, 65, 200);
/* oklch */ color: oklch(55.2% 0.206 311.0);
Tailwind
colors: {
  custom: {
    50: '#ba7cd9',
    500: '#9841c8',
    950: '#000000',
  },
}
SCSS
$custom: #9841c8;
$custom-light: #ba7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9841c8",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 278.667,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55232,
    "c": 0.2058,
    "h": 311
  },
  "luminance": 0.14626
}

Semantic roles & 50–950 ramp

primary
#9841C8
secondary
#AAD095
accent
#DE497E
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9841C8

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

Preview Lab → · Contrast checker → · Palette generator →

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