#9B38AA#9B38AA

#9B38AA is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.7% C 0.190 H 322.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9B38AA
RGBrgb(155, 56, 170)
HSLhsl(292, 50%, 44%)
HSVhsv(292, 67%, 67%)
CMYKcmyk(8.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(42.31, 56.53, -41.87)
CIE-LCHlch(42.31, 70.35, 323.47°)
OKLaboklab(52.71% 0.1503 -0.1167)
OKLCHoklch(52.71% 0.19 322.2)
XYZxyz(22.1867, 12.7004, 39.3052)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38AA #47AA38
analogous
#6238AA #9B38AA #AA3880
triadic
#9B38AA #AA9B38 #38AA9B
tetradic
#9B38AA #AA6238 #47AA38 #3880AA
square
#9B38AA #AA6238 #47AA38 #3880AA
split-complementary
#9B38AA #80AA38 #38AA62
monochromatic
#471A4E #71297C #9B38AA #B957C8 #CC85D7

Accessibility & contrast

On white

5.93
#9B38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9B38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38AA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38AA#FFFFFF#000000##FFFFFF
##9B38AA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185DAD
Deuteranopia (green-blind)
#4768A7
Tritanopia (blue-blind)
#9D4B6C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9b38aa;
/* rgb */ color: rgb(155, 56, 170);
/* oklch */ color: oklch(52.7% 0.190 322.2);
Tailwind
colors: {
  custom: {
    50: '#bc76c4',
    500: '#9b38aa',
    950: '#000000',
  },
}
SCSS
$custom: #9b38aa;
$custom-light: #bc76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38aa",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 292.105,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5271,
    "c": 0.19032,
    "h": 322.2
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

primary
#9B38AA
secondary
#86C17D
accent
#DA4E60
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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