#9834B2#9834B2

#9834B2 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.201 H 318.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9834B2
RGBrgb(152, 52, 178)
HSLhsl(288, 55%, 45%)
HSVhsv(288, 71%, 70%)
CMYKcmyk(14.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(41.76, 59.00, -47.51)
CIE-LCHlch(41.76, 75.75, 321.16°)
OKLaboklab(52.38% 0.1507 -0.1333)
OKLCHoklch(52.38% 0.201 318.5)
XYZxyz(22.2117, 12.3467, 43.3240)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834B2 #4EB234
analogous
#5934B2 #9834B2 #B2348D
triadic
#9834B2 #B29834 #34B298
tetradic
#9834B2 #B25934 #4EB234 #348DB2
square
#9834B2 #B25934 #4EB234 #348DB2
split-complementary
#9834B2 #8DB234 #34B259
monochromatic
#471853 #702683 #9834B2 #B556CE #CA85DB

Accessibility & contrast

On white

6.05
#9834B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9834B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834B2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834B2#FFFFFF#000000##FFFFFF
##9834B21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#984C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9834b2;
/* rgb */ color: rgb(152, 52, 178);
/* oklch */ color: oklch(52.4% 0.201 318.5);
Tailwind
colors: {
  custom: {
    50: '#ba74ca',
    500: '#9834b2',
    950: '#000000',
  },
}
SCSS
$custom: #9834b2;
$custom-light: #ba74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9834b2",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 287.619,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52382,
    "c": 0.20119,
    "h": 318.5
  },
  "luminance": 0.12346
}

Semantic roles & 50–950 ramp

primary
#9834B2
secondary
#8CC57D
accent
#DE4A68
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9834B2

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

Preview Lab → · Contrast checker → · Palette generator →

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