#9B38D7#9B38D7

#9B38D7 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.7% C 0.232 H 309.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9B38D7
RGBrgb(155, 56, 215)
HSLhsl(277, 67%, 53%)
HSVhsv(277, 74%, 84%)
CMYKcmyk(27.9%, 74%, 0%, 15.7%)
CIE-LABlab(45.23, 65.57, -63.43)
CIE-LCHlch(45.23, 91.23, 315.95°)
OKLaboklab(55.72% 0.1459 -0.1799)
OKLCHoklch(55.72% 0.232 309)
XYZxyz(27.1950, 14.7037, 65.6823)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38D7 #74D738
analogous
#4B38D7 #9B38D7 #D738C4
triadic
#9B38D7 #D79B38 #38D79B
tetradic
#9B38D7 #D74B38 #74D738 #38C4D7
square
#9B38D7 #D74B38 #74D738 #38C4D7
split-complementary
#9B38D7 #C4D738 #38D74B
monochromatic
#56197C #7A23AF #9B38D7 #B56BE1 #CE9EEB

Accessibility & contrast

On white

5.33
#9B38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9B38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38D7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38D7#FFFFFF#000000##FFFFFF
##9B38D71.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#925E85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b38d7;
/* rgb */ color: rgb(155, 56, 215);
/* oklch */ color: oklch(55.7% 0.232 309.0);
Tailwind
colors: {
  custom: {
    50: '#be78e4',
    500: '#9b38d7',
    950: '#000000',
  },
}
SCSS
$custom: #9b38d7;
$custom-light: #be78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38d7",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 277.358,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55718,
    "c": 0.23165,
    "h": 309
  },
  "luminance": 0.14703
}

Semantic roles & 50–950 ramp

primary
#9B38D7
secondary
#ADD893
accent
#E93E7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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