#9B38CA#9B38CA

#9B38CA is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.220 H 312.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9B38CA
RGBrgb(155, 56, 202)
HSLhsl(281, 58%, 51%)
HSVhsv(281, 72%, 79%)
CMYKcmyk(23.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(44.32, 62.86, -57.40)
CIE-LCHlch(44.32, 85.12, 317.60°)
OKLaboklab(54.79% 0.148 -0.1622)
OKLCHoklch(54.79% 0.22 312.4)
XYZxyz(25.5905, 14.0619, 57.2318)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38CA #67CA38
analogous
#5238CA #9B38CA #CA38B0
triadic
#9B38CA #CA9B38 #38CA9B
tetradic
#9B38CA #CA5238 #67CA38 #38B0CA
square
#9B38CA #CA5238 #67CA38 #38B0CA
split-complementary
#9B38CA #B0CA38 #38CA52
monochromatic
#521D6B #77299B #9B38CA #B368D7 #CC99E4

Accessibility & contrast

On white

5.51
#9B38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9B38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38CA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38CA#FFFFFF#000000##FFFFFF
##9B38CA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#96587E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b38ca;
/* rgb */ color: rgb(155, 56, 202);
/* oklch */ color: oklch(54.8% 0.220 312.4);
Tailwind
colors: {
  custom: {
    50: '#bd78db',
    500: '#9b38ca',
    950: '#000000',
  },
}
SCSS
$custom: #9b38ca;
$custom-light: #bd78db;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38ca",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 280.685,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.21956,
    "h": 312.4
  },
  "luminance": 0.14061
}

Semantic roles & 50–950 ramp

primary
#9B38CA
secondary
#A3CF8E
accent
#E14778
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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