#9835B7#9835B7

#9835B7 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.205 H 316.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9835B7
RGBrgb(152, 53, 183)
HSLhsl(286, 55%, 46%)
HSVhsv(286, 71%, 72%)
CMYKcmyk(16.9%, 71%, 0%, 28.2%)
CIE-LABlab(42.22, 59.59, -49.73)
CIE-LCHlch(42.22, 77.61, 320.15°)
OKLaboklab(52.81% 0.1493 -0.1398)
OKLCHoklch(52.81% 0.205 316.9)
XYZxyz(22.7680, 12.6414, 46.0313)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9835B7 #54B735
analogous
#5735B7 #9835B7 #B73595
triadic
#9835B7 #B79835 #35B798
tetradic
#9835B7 #B75735 #54B735 #3595B7
square
#9835B7 #B75735 #54B735 #3595B7
split-complementary
#9835B7 #95B735 #35B757
monochromatic
#491A58 #712788 #9835B7 #B35ACF #C989DD

Accessibility & contrast

On white

5.95
#9835B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9835B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9835B7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9835B7#FFFFFF#000000##FFFFFF
##9835B71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#3767B4
Tritanopia (blue-blind)
#964F73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9835b7;
/* rgb */ color: rgb(152, 53, 183);
/* oklch */ color: oklch(52.8% 0.205 316.9);
Tailwind
colors: {
  custom: {
    50: '#ba75cd',
    500: '#9835b7',
    950: '#000000',
  },
}
SCSS
$custom: #9835b7;
$custom-light: #ba75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9835b7",
  "rgb": {
    "r": 152,
    "g": 53,
    "b": 183
  },
  "hsl": {
    "h": 285.692,
    "s": 55.085,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.20451,
    "h": 316.9
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#9835B7
secondary
#92C781
accent
#DE496D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9835B7

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

Preview Lab → · Contrast checker → · Palette generator →

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