#9834BA#9834BA

#9834BA is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.208 H 316.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9834BA
RGBrgb(152, 52, 186)
HSLhsl(285, 56%, 47%)
HSVhsv(285, 72%, 73%)
CMYKcmyk(18.3%, 72%, 0%, 27.1%)
CIE-LABlab(42.27, 60.57, -51.40)
CIE-LCHlch(42.27, 79.44, 319.68°)
OKLaboklab(52.91% 0.15 -0.1447)
OKLCHoklch(52.91% 0.208 316)
XYZxyz(23.0384, 12.6775, 47.6783)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834BA #56BA34
analogous
#5534BA #9834BA #BA3499
triadic
#9834BA #BA9834 #34BA98
tetradic
#9834BA #BA5534 #56BA34 #3499BA
square
#9834BA #BA5534 #56BA34 #3499BA
split-complementary
#9834BA #99BA34 #34BA55
monochromatic
#4A195A #71278A #9834BA #B35AD1 #C98ADE

Accessibility & contrast

On white

5.94
#9834BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9834BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834BA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834BA#FFFFFF#000000##FFFFFF
##9834BA1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#965074
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9834ba;
/* rgb */ color: rgb(152, 52, 186);
/* oklch */ color: oklch(52.9% 0.208 316.0);
Tailwind
colors: {
  custom: {
    50: '#ba75cf',
    500: '#9834ba',
    950: '#000000',
  },
}
SCSS
$custom: #9834ba;
$custom-light: #ba75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9834ba",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 284.776,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52909,
    "c": 0.20842,
    "h": 316
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#9834BA
secondary
#93C881
accent
#E0486F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9834BA

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

Preview Lab → · Contrast checker → · Palette generator →

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