#9B38CB#9B38CB

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

Color values

HEX#9B38CB
RGBrgb(155, 56, 203)
HSLhsl(280, 59%, 51%)
HSVhsv(280, 72%, 80%)
CMYKcmyk(23.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(44.39, 63.06, -57.87)
CIE-LCHlch(44.39, 85.59, 317.46°)
OKLaboklab(54.86% 0.1478 -0.1636)
OKLCHoklch(54.86% 0.22 312.1)
XYZxyz(25.7093, 14.1094, 57.8574)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38CB #68CB38
analogous
#5138CB #9B38CB #CB38B2
triadic
#9B38CB #CB9B38 #38CB9B
tetradic
#9B38CB #CB5138 #68CB38 #38B2CB
square
#9B38CB #CB5138 #68CB38 #38B2CB
split-complementary
#9B38CB #B2CB38 #38CB51
monochromatic
#521C6C #77299D #9B38CB #B369D8 #CC99E4

Accessibility & contrast

On white

5.49
#9B38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9B38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38CB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38CB#FFFFFF#000000##FFFFFF
##9B38CB1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#95597E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b38cb;
/* rgb */ color: rgb(155, 56, 203);
/* oklch */ color: oklch(54.9% 0.220 312.1);
Tailwind
colors: {
  custom: {
    50: '#bd78dc',
    500: '#9b38cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b38cb;
$custom-light: #bd78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38cb",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 280.408,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54862,
    "c": 0.22049,
    "h": 312.1
  },
  "luminance": 0.14109
}

Semantic roles & 50–950 ramp

primary
#9B38CB
secondary
#A4D08F
accent
#E24679
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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