#9835B5#9835B5

#9835B5 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.7% C 0.203 H 317.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9835B5
RGBrgb(152, 53, 181)
HSLhsl(286, 55%, 46%)
HSVhsv(286, 71%, 71%)
CMYKcmyk(16%, 70.7%, 0%, 29%)
CIE-LABlab(42.09, 59.19, -48.76)
CIE-LCHlch(42.09, 76.69, 320.52°)
OKLaboklab(52.68% 0.1495 -0.1369)
OKLCHoklch(52.68% 0.203 317.5)
XYZxyz(22.5613, 12.5588, 44.9428)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9835B5 #52B535
analogous
#5835B5 #9835B5 #B53592
triadic
#9835B5 #B59835 #35B598
tetradic
#9835B5 #B55835 #52B535 #3592B5
square
#9835B5 #B55835 #52B535 #3592B5
split-complementary
#9835B5 #92B535 #35B558
monochromatic
#481956 #702786 #9835B5 #B459CE #C988DC

Accessibility & contrast

On white

5.98
#9835B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9835B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9835B5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9835B5#FFFFFF#000000##FFFFFF
##9835B51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9835b5;
/* rgb */ color: rgb(152, 53, 181);
/* oklch */ color: oklch(52.7% 0.203 317.5);
Tailwind
colors: {
  custom: {
    50: '#ba75cc',
    500: '#9835b5',
    950: '#000000',
  },
}
SCSS
$custom: #9835b5;
$custom-light: #ba75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9835b5",
  "rgb": {
    "r": 152,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 286.406,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52677,
    "c": 0.20269,
    "h": 317.5
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#9835B5
secondary
#90C680
accent
#DE4A6B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9835B5

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

Preview Lab → · Contrast checker → · Palette generator →

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