#9841C2#9841C2

#9841C2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.8% C 0.200 H 312.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9841C2
RGBrgb(152, 65, 194)
HSLhsl(280, 51%, 51%)
HSVhsv(280, 66%, 76%)
CMYKcmyk(21.6%, 66.5%, 0%, 23.9%)
CIE-LABlab(44.73, 56.75, -52.12)
CIE-LCHlch(44.73, 77.06, 317.44°)
OKLaboklab(54.83% 0.1355 -0.1469)
OKLCHoklch(54.83% 0.2 312.7)
XYZxyz(24.5751, 14.3517, 52.5041)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9841C2 #6BC241
analogous
#5741C2 #9841C2 #C241AB
triadic
#9841C2 #C29841 #41C298
tetradic
#9841C2 #C25741 #6BC241 #41ABC2
square
#9841C2 #C25741 #6BC241 #41ABC2
split-complementary
#9841C2 #ABC241 #41C257
monochromatic
#512167 #753096 #9841C2 #B16FD1 #CA9EE0

Accessibility & contrast

On white

5.43
#9841C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9841C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9841C2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9841C2#FFFFFF#000000##FFFFFF
##9841C21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#376CBF
Tritanopia (blue-blind)
#935B7C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9841c2;
/* rgb */ color: rgb(152, 65, 194);
/* oklch */ color: oklch(54.8% 0.200 312.7);
Tailwind
colors: {
  custom: {
    50: '#ba7cd5',
    500: '#9841c2',
    950: '#000000',
  },
}
SCSS
$custom: #9841c2;
$custom-light: #ba7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9841c2",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 280.465,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54833,
    "c": 0.19986,
    "h": 312.7
  },
  "luminance": 0.14351
}

Semantic roles & 50–950 ramp

primary
#9841C2
secondary
#A5CC93
accent
#DB4D7B
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9841C2

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

Preview Lab → · Contrast checker → · Palette generator →

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