#9842BE#9842BE

#9842BE is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.7% C 0.195 H 313.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9842BE
RGBrgb(152, 66, 190)
HSLhsl(282, 49%, 50%)
HSVhsv(282, 65%, 75%)
CMYKcmyk(20%, 65.3%, 0%, 25.5%)
CIE-LABlab(44.65, 55.45, -49.93)
CIE-LCHlch(44.65, 74.62, 318.00°)
OKLaboklab(54.69% 0.1346 -0.1405)
OKLCHoklch(54.69% 0.195 313.8)
XYZxyz(24.1898, 14.2903, 50.1893)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842BE #68BE42
analogous
#5A42BE #9842BE #BE42A6
triadic
#9842BE #BE9842 #42BE98
tetradic
#9842BE #BE5A42 #68BE42 #42A6BE
square
#9842BE #BE5A42 #68BE42 #42A6BE
split-complementary
#9842BE #A6BE42 #42BE5A
monochromatic
#4F2263 #743291 #9842BE #B170CE #CA9DDD

Accessibility & contrast

On white

5.44
#9842BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9842BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842BE
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842BE#FFFFFF#000000##FFFFFF
##9842BE1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#3C6CBB
Tritanopia (blue-blind)
#945A7A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9842be;
/* rgb */ color: rgb(152, 66, 190);
/* oklch */ color: oklch(54.7% 0.195 313.8);
Tailwind
colors: {
  custom: {
    50: '#ba7cd2',
    500: '#9842be',
    950: '#000000',
  },
}
SCSS
$custom: #9842be;
$custom-light: #ba7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9842be",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 281.613,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5469,
    "c": 0.19456,
    "h": 313.8
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#9842BE
secondary
#A3CA92
accent
#D84F79
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9842BE

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

Preview Lab → · Contrast checker → · Palette generator →

#9842BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva