#9834A2#9834A2

#9834A2 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.187 H 324.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9834A2
RGBrgb(152, 52, 162)
HSLhsl(295, 51%, 42%)
HSVhsv(295, 68%, 64%)
CMYKcmyk(6.2%, 67.9%, 0%, 36.5%)
CIE-LABlab(40.80, 55.98, -39.53)
CIE-LCHlch(40.80, 68.53, 324.77°)
OKLaboklab(51.39% 0.1513 -0.11)
OKLCHoklch(51.39% 0.187 324)
XYZxyz(20.6979, 11.7412, 35.3515)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834A2 #3EA234
analogous
#6134A2 #9834A2 #A23475
triadic
#9834A2 #A29834 #34A298
tetradic
#9834A2 #A26134 #3EA234 #3475A2
square
#9834A2 #A26134 #3EA234 #3475A2
split-complementary
#9834A2 #75A234 #34A261
monochromatic
#411645 #6D2574 #9834A2 #BB4DC6 #CD7CD5

Accessibility & contrast

On white

6.27
#9834A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9834A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834A2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834A2#FFFFFF#000000##FFFFFF
##9834A21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1959A5
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#9B4667
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9834a2;
/* rgb */ color: rgb(152, 52, 162);
/* oklch */ color: oklch(51.4% 0.187 324.0);
Tailwind
colors: {
  custom: {
    50: '#ba74be',
    500: '#9834a2',
    950: '#000000',
  },
}
SCSS
$custom: #9834a2;
$custom-light: #ba74be;
$custom-dark: #000000;
JSON
{
  "hex": "#9834a2",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 294.545,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51385,
    "c": 0.187,
    "h": 324
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#9834A2
secondary
#7BBE74
accent
#DB4D5A
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9834A2

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

Preview Lab → · Contrast checker → · Palette generator →

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