#9B38CC#9B38CC

#9B38CC is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.221 H 311.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9B38CC
RGBrgb(155, 56, 204)
HSLhsl(280, 59%, 51%)
HSVhsv(280, 73%, 80%)
CMYKcmyk(24%, 72.5%, 0%, 20%)
CIE-LABlab(44.46, 63.27, -58.34)
CIE-LCHlch(44.46, 86.06, 317.32°)
OKLaboklab(54.93% 0.1477 -0.165)
OKLCHoklch(54.93% 0.221 311.8)
XYZxyz(25.8288, 14.1572, 58.4870)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38CC #69CC38
analogous
#5138CC #9B38CC #CC38B3
triadic
#9B38CC #CC9B38 #38CC9B
tetradic
#9B38CC #CC5138 #69CC38 #38B3CC
square
#9B38CC #CC5138 #69CC38 #38B3CC
split-complementary
#9B38CC #B3CC38 #38CC51
monochromatic
#531C6E #77299E #9B38CC #B369D8 #CC99E5

Accessibility & contrast

On white

5.48
#9B38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9B38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38CC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38CC#FFFFFF#000000##FFFFFF
##9B38CC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#236BC9
Tritanopia (blue-blind)
#95597F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b38cc;
/* rgb */ color: rgb(155, 56, 204);
/* oklch */ color: oklch(54.9% 0.221 311.8);
Tailwind
colors: {
  custom: {
    50: '#bd78dc',
    500: '#9b38cc',
    950: '#000000',
  },
}
SCSS
$custom: #9b38cc;
$custom-light: #bd78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38cc",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 280.135,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54932,
    "c": 0.22142,
    "h": 311.8
  },
  "luminance": 0.14157
}

Semantic roles & 50–950 ramp

primary
#9B38CC
secondary
#A5D18F
accent
#E24579
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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