#9842AA#9842AA

#9842AA is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.5% C 0.175 H 320.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9842AA
RGBrgb(152, 66, 170)
HSLhsl(290, 44%, 46%)
HSVhsv(290, 61%, 67%)
CMYKcmyk(10.6%, 61.2%, 0%, 33.3%)
CIE-LABlab(43.47, 51.36, -40.05)
CIE-LCHlch(43.47, 65.13, 322.05°)
OKLaboklab(53.46% 0.1347 -0.1116)
OKLCHoklch(53.46% 0.175 320.4)
XYZxyz(22.1519, 13.4751, 39.4565)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9842AA #54AA42
analogous
#6442AA #9842AA #AA4288
triadic
#9842AA #AA9842 #42AA98
tetradic
#9842AA #AA6442 #54AA42 #4288AA
square
#9842AA #AA6442 #54AA42 #4288AA
split-complementary
#9842AA #88AA42 #42AA64
monochromatic
#492052 #71317E #9842AA #B366C3 #C992D5

Accessibility & contrast

On white

5.68
#9842AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9842AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9842AA#FFFFFF#000000##FFFFFF
##9842AA1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AD
Deuteranopia (green-blind)
#4B6AA7
Tritanopia (blue-blind)
#995270
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9842aa;
/* rgb */ color: rgb(152, 66, 170);
/* oklch */ color: oklch(53.5% 0.175 320.4);
Tailwind
colors: {
  custom: {
    50: '#b97cc4',
    500: '#9842aa',
    950: '#000000',
  },
}
SCSS
$custom: #9842aa;
$custom-light: #b97cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9842aa",
  "rgb": {
    "r": 152,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 289.615,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53461,
    "c": 0.17495,
    "h": 320.4
  },
  "luminance": 0.13474
}

Semantic roles & 50–950 ramp

primary
#9842AA
secondary
#92C088
accent
#D4546A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9842AA

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

Preview Lab → · Contrast checker → · Palette generator →

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