#9834B5#9834B5

#9834B5 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.204 H 317.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9834B5
RGBrgb(152, 52, 181)
HSLhsl(287, 55%, 46%)
HSVhsv(287, 71%, 71%)
CMYKcmyk(16%, 71.3%, 0%, 29%)
CIE-LABlab(41.95, 59.59, -48.98)
CIE-LCHlch(41.95, 77.13, 320.58°)
OKLaboklab(52.58% 0.1505 -0.1376)
OKLCHoklch(52.58% 0.204 317.6)
XYZxyz(22.5162, 12.4685, 44.9277)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834B5 #51B534
analogous
#5834B5 #9834B5 #B53491
triadic
#9834B5 #B59834 #34B598
tetradic
#9834B5 #B55834 #51B534 #3491B5
square
#9834B5 #B55834 #51B534 #3491B5
split-complementary
#9834B5 #91B534 #34B558
monochromatic
#481956 #702685 #9834B5 #B457CF #C987DC

Accessibility & contrast

On white

6.01
#9834B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9834B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834B5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834B5#FFFFFF#000000##FFFFFF
##9834B51.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#3866B2
Tritanopia (blue-blind)
#974E71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9834b5;
/* rgb */ color: rgb(152, 52, 181);
/* oklch */ color: oklch(52.6% 0.204 317.6);
Tailwind
colors: {
  custom: {
    50: '#ba75cc',
    500: '#9834b5',
    950: '#000000',
  },
}
SCSS
$custom: #9834b5;
$custom-light: #ba75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9834b5",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 286.512,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52577,
    "c": 0.20389,
    "h": 317.6
  },
  "luminance": 0.12468
}

Semantic roles & 50–950 ramp

primary
#9834B5
secondary
#8FC67F
accent
#DF496B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9834B5

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

Preview Lab → · Contrast checker → · Palette generator →

#9834B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva