#9B38C8#9B38C8

#9B38C8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.218 H 312.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9B38C8
RGBrgb(155, 56, 200)
HSLhsl(281, 57%, 50%)
HSVhsv(281, 72%, 78%)
CMYKcmyk(22.5%, 72%, 0%, 21.6%)
CIE-LABlab(44.19, 62.44, -56.46)
CIE-LCHlch(44.19, 84.19, 317.88°)
OKLaboklab(54.65% 0.1482 -0.1595)
OKLCHoklch(54.65% 0.218 312.9)
XYZxyz(25.3552, 13.9678, 55.9928)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38C8 #65C838
analogous
#5338C8 #9B38C8 #C838AD
triadic
#9B38C8 #C89B38 #38C89B
tetradic
#9B38C8 #C85338 #65C838 #38ADC8
square
#9B38C8 #C85338 #65C838 #38ADC8
split-complementary
#9B38C8 #ADC838 #38C853
monochromatic
#511D69 #762A99 #9B38C8 #B368D5 #CB98E3

Accessibility & contrast

On white

5.54
#9B38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9B38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38C8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38C8#FFFFFF#000000##FFFFFF
##9B38C81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#2A6BC5
Tritanopia (blue-blind)
#96577D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9b38c8;
/* rgb */ color: rgb(155, 56, 200);
/* oklch */ color: oklch(54.7% 0.218 312.9);
Tailwind
colors: {
  custom: {
    50: '#bd78d9',
    500: '#9b38c8',
    950: '#000000',
  },
}
SCSS
$custom: #9b38c8;
$custom-light: #bd78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38c8",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 281.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54654,
    "c": 0.2177,
    "h": 312.9
  },
  "luminance": 0.13967
}

Semantic roles & 50–950 ramp

primary
#9B38C8
secondary
#A2CE8E
accent
#E04877
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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