#9B38BA#9B38BA

#9B38BA is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.205 H 316.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9B38BA
RGBrgb(155, 56, 186)
HSLhsl(286, 54%, 47%)
HSVhsv(286, 70%, 73%)
CMYKcmyk(16.7%, 69.9%, 0%, 27.1%)
CIE-LABlab(43.28, 59.62, -49.77)
CIE-LCHlch(43.28, 77.66, 320.15°)
OKLaboklab(53.71% 0.1496 -0.1398)
OKLCHoklch(53.71% 0.205 316.9)
XYZxyz(23.7934, 13.3431, 47.7670)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38BA #57BA38
analogous
#5A38BA #9B38BA #BA3898
triadic
#9B38BA #BA9B38 #38BA9B
tetradic
#9B38BA #BA5A38 #57BA38 #3898BA
square
#9B38BA #BA5A38 #57BA38 #3898BA
split-complementary
#9B38BA #98BA38 #38BA5A
monochromatic
#4D1C5C #742A8B #9B38BA #B560CF #CB8FDD

Accessibility & contrast

On white

5.72
#9B38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9B38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38BA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38BA#FFFFFF#000000##FFFFFF
##9B38BA1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#3A69B7
Tritanopia (blue-blind)
#995275
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9b38ba;
/* rgb */ color: rgb(155, 56, 186);
/* oklch */ color: oklch(53.7% 0.205 316.9);
Tailwind
colors: {
  custom: {
    50: '#bc77cf',
    500: '#9b38ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b38ba;
$custom-light: #bc77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38ba",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 285.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53714,
    "c": 0.2048,
    "h": 316.9
  },
  "luminance": 0.13342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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