#9842BC#9842BC

#9842BC is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.193 H 314.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9842BC
RGBrgb(152, 66, 188)
HSLhsl(282, 48%, 50%)
HSVhsv(282, 65%, 74%)
CMYKcmyk(19.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(44.52, 55.03, -48.96)
CIE-LCHlch(44.52, 73.66, 318.34°)
OKLaboklab(54.56% 0.1347 -0.1376)
OKLCHoklch(54.56% 0.193 314.4)
XYZxyz(23.9727, 14.2034, 49.0459)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842BC #66BC42
analogous
#5B42BC #9842BC #BC42A3
triadic
#9842BC #BC9842 #42BC98
tetradic
#9842BC #BC5B42 #66BC42 #42A3BC
square
#9842BC #BC5B42 #66BC42 #42A3BC
split-complementary
#9842BC #A3BC42 #42BC5B
monochromatic
#4F2261 #73328F #9842BC #B16FCC #C99CDC

Accessibility & contrast

On white

5.47
#9842BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9842BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842BC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842BC#FFFFFF#000000##FFFFFF
##9842BC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0764C0
Deuteranopia (green-blind)
#3E6BB9
Tritanopia (blue-blind)
#955979
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9842bc;
/* rgb */ color: rgb(152, 66, 188);
/* oklch */ color: oklch(54.6% 0.193 314.4);
Tailwind
colors: {
  custom: {
    50: '#ba7cd1',
    500: '#9842bc',
    950: '#000000',
  },
}
SCSS
$custom: #9842bc;
$custom-light: #ba7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9842bc",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 282.295,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54562,
    "c": 0.19258,
    "h": 314.4
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#9842BC
secondary
#A2C991
accent
#D85078
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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