#9B38BB#9B38BB

#9B38BB is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.206 H 316.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9B38BB
RGBrgb(155, 56, 187)
HSLhsl(285, 54%, 48%)
HSVhsv(285, 70%, 73%)
CMYKcmyk(17.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(43.34, 59.82, -50.25)
CIE-LCHlch(43.34, 78.13, 319.97°)
OKLaboklab(53.78% 0.1496 -0.1412)
OKLCHoklch(53.78% 0.206 316.6)
XYZxyz(23.9000, 13.3857, 48.3288)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38BB #58BB38
analogous
#5A38BB #9B38BB #BB3899
triadic
#9B38BB #BB9B38 #38BB9B
tetradic
#9B38BB #BB5A38 #58BB38 #3899BB
square
#9B38BB #BB5A38 #58BB38 #3899BB
split-complementary
#9B38BB #99BB38 #38BB5A
monochromatic
#4D1C5D #742A8C #9B38BB #B461D0 #CB90DE

Accessibility & contrast

On white

5.71
#9B38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9B38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38BB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38BB#FFFFFF#000000##FFFFFF
##9B38BB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#3969B8
Tritanopia (blue-blind)
#995276
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9b38bb;
/* rgb */ color: rgb(155, 56, 187);
/* oklch */ color: oklch(53.8% 0.206 316.6);
Tailwind
colors: {
  custom: {
    50: '#bc77d0',
    500: '#9b38bb',
    950: '#000000',
  },
}
SCSS
$custom: #9b38bb;
$custom-light: #bc77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38bb",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 285.344,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5378,
    "c": 0.20572,
    "h": 316.6
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

primary
#9B38BB
secondary
#96C886
accent
#DD4B6E
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9B38BB

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

Preview Lab → · Contrast checker → · Palette generator →

#9B38BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva