#9842BB#9842BB

#9842BB is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.5% C 0.192 H 314.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9842BB
RGBrgb(152, 66, 187)
HSLhsl(283, 48%, 50%)
HSVhsv(283, 65%, 73%)
CMYKcmyk(18.7%, 64.7%, 0%, 26.7%)
CIE-LABlab(44.46, 54.82, -48.48)
CIE-LCHlch(44.46, 73.18, 318.52°)
OKLaboklab(54.5% 0.1348 -0.1362)
OKLCHoklch(54.5% 0.192 314.7)
XYZxyz(23.8653, 14.1605, 48.4802)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842BB #65BB42
analogous
#5C42BB #9842BB #BB42A1
triadic
#9842BB #BB9842 #42BB98
tetradic
#9842BB #BB5C42 #65BB42 #42A1BB
square
#9842BB #BB5C42 #65BB42 #42A1BB
split-complementary
#9842BB #A1BB42 #42BB5C
monochromatic
#4E2261 #73328E #9842BB #B16ECC #C99CDC

Accessibility & contrast

On white

5.48
#9842BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9842BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9842BB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9842BB#FFFFFF#000000##FFFFFF
##9842BB1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BF
Deuteranopia (green-blind)
#3F6BB8
Tritanopia (blue-blind)
#955979
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9842bb;
/* rgb */ color: rgb(152, 66, 187);
/* oklch */ color: oklch(54.5% 0.192 314.7);
Tailwind
colors: {
  custom: {
    50: '#ba7cd0',
    500: '#9842bb',
    950: '#000000',
  },
}
SCSS
$custom: #9842bb;
$custom-light: #ba7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9842bb",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 282.645,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54498,
    "c": 0.19159,
    "h": 314.7
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#9842BB
secondary
#A1C891
accent
#D75077
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9842BB

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

Preview Lab → · Contrast checker → · Palette generator →

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