#9835BA#9835BA

#9835BA is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.207 H 316.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9835BA
RGBrgb(152, 53, 186)
HSLhsl(285, 56%, 47%)
HSVhsv(285, 72%, 73%)
CMYKcmyk(18.3%, 71.5%, 0%, 27.1%)
CIE-LABlab(42.41, 60.18, -51.18)
CIE-LCHlch(42.41, 79.00, 319.62°)
OKLaboklab(53.01% 0.149 -0.144)
OKLCHoklch(53.01% 0.207 316)
XYZxyz(23.0835, 12.7677, 47.6933)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9835BA #57BA35
analogous
#5635BA #9835BA #BA359A
triadic
#9835BA #BA9835 #35BA98
tetradic
#9835BA #BA5635 #57BA35 #359ABA
square
#9835BA #BA5635 #57BA35 #359ABA
split-complementary
#9835BA #9ABA35 #35BA56
monochromatic
#4A1A5B #71278A #9835BA #B35CD0 #C98BDE

Accessibility & contrast

On white

5.91
#9835BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9835BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9835BA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9835BA#FFFFFF#000000##FFFFFF
##9835BA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9835ba;
/* rgb */ color: rgb(152, 53, 186);
/* oklch */ color: oklch(53.0% 0.207 316.0);
Tailwind
colors: {
  custom: {
    50: '#ba75cf',
    500: '#9835ba',
    950: '#000000',
  },
}
SCSS
$custom: #9835ba;
$custom-light: #ba75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9835ba",
  "rgb": {
    "r": 152,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 284.662,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.20725,
    "h": 316
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#9835BA
secondary
#94C882
accent
#DF496F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9835BA

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

Preview Lab → · Contrast checker → · Palette generator →

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