#9841C5#9841C5

#9841C5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.203 H 311.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9841C5
RGBrgb(152, 65, 197)
HSLhsl(280, 53%, 51%)
HSVhsv(280, 67%, 77%)
CMYKcmyk(22.8%, 67%, 0%, 22.7%)
CIE-LABlab(44.92, 57.39, -53.56)
CIE-LCHlch(44.92, 78.50, 316.98°)
OKLaboklab(55.03% 0.1353 -0.1511)
OKLCHoklch(55.03% 0.203 311.9)
XYZxyz(24.9154, 14.4879, 54.2964)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841C5 #6EC541
analogous
#5641C5 #9841C5 #C541B0
triadic
#9841C5 #C59841 #41C598
tetradic
#9841C5 #C55641 #6EC541 #41B0C5
square
#9841C5 #C55641 #6EC541 #41B0C5
split-complementary
#9841C5 #B0C541 #41C556
monochromatic
#52216B #752F9A #9841C5 #B170D3 #CB9FE2

Accessibility & contrast

On white

5.39
#9841C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9841C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841C5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841C5#FFFFFF#000000##FFFFFF
##9841C51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#336CC2
Tritanopia (blue-blind)
#935C7E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9841c5;
/* rgb */ color: rgb(152, 65, 197);
/* oklch */ color: oklch(55.0% 0.203 311.9);
Tailwind
colors: {
  custom: {
    50: '#ba7cd7',
    500: '#9841c5',
    950: '#000000',
  },
}
SCSS
$custom: #9841c5;
$custom-light: #ba7cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9841c5",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 197
  },
  "hsl": {
    "h": 279.545,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.20283,
    "h": 311.9
  },
  "luminance": 0.14487
}

Semantic roles & 50–950 ramp

primary
#9841C5
secondary
#A8CE94
accent
#DD4B7D
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9841C5

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

Preview Lab → · Contrast checker → · Palette generator →

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