#9B38BD#9B38BD

#9B38BD is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 53.9% C 0.208 H 316.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9B38BD
RGBrgb(155, 56, 189)
HSLhsl(285, 54%, 48%)
HSVhsv(285, 70%, 74%)
CMYKcmyk(18%, 70.4%, 0%, 25.9%)
CIE-LABlab(43.47, 60.22, -51.22)
CIE-LCHlch(43.47, 79.05, 319.62°)
OKLaboklab(53.91% 0.1494 -0.1441)
OKLCHoklch(53.91% 0.208 316)
XYZxyz(24.1156, 13.4720, 49.4643)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38BD #5ABD38
analogous
#5938BD #9B38BD #BD389C
triadic
#9B38BD #BD9B38 #38BD9B
tetradic
#9B38BD #BD5938 #5ABD38 #389CBD
square
#9B38BD #BD5938 #5ABD38 #389CBD
split-complementary
#9B38BD #9CBD38 #38BD59
monochromatic
#4E1C5F #742A8E #9B38BD #B462D0 #CB91DE

Accessibility & contrast

On white

5.68
#9B38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9B38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38BD
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38BD#FFFFFF#000000##FFFFFF
##9B38BD1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#3769BA
Tritanopia (blue-blind)
#995377
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9b38bd;
/* rgb */ color: rgb(155, 56, 189);
/* oklch */ color: oklch(53.9% 0.208 316.0);
Tailwind
colors: {
  custom: {
    50: '#bc77d2',
    500: '#9b38bd',
    950: '#000000',
  },
}
SCSS
$custom: #9b38bd;
$custom-light: #bc77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38bd",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 284.662,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53911,
    "c": 0.20756,
    "h": 316
  },
  "luminance": 0.13471
}

Semantic roles & 50–950 ramp

primary
#9B38BD
secondary
#98C987
accent
#DE4A70
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9B38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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