#9B38D3#9B38D3

#9B38D3 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.4% C 0.228 H 310.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9B38D3
RGBrgb(155, 56, 211)
HSLhsl(278, 64%, 52%)
HSVhsv(278, 73%, 83%)
CMYKcmyk(26.5%, 73.5%, 0%, 17.3%)
CIE-LABlab(44.94, 64.73, -61.59)
CIE-LCHlch(44.94, 89.35, 316.42°)
OKLaboklab(55.43% 0.1466 -0.1745)
OKLCHoklch(55.43% 0.228 310)
XYZxyz(26.6873, 14.5006, 63.0084)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38D3 #70D338
analogous
#4E38D3 #9B38D3 #D338BD
triadic
#9B38D3 #D39B38 #38D39B
tetradic
#9B38D3 #D34E38 #70D338 #38BDD3
square
#9B38D3 #D34E38 #70D338 #38BDD3
split-complementary
#9B38D3 #BDD338 #38D34E
monochromatic
#551A76 #7925A9 #9B38D3 #B46ADE #CD9CE9

Accessibility & contrast

On white

5.38
#9B38D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9B38D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38D3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38D3#FFFFFF#000000##FFFFFF
##9B38D31.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#126CD0
Tritanopia (blue-blind)
#935C83
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9b38d3;
/* rgb */ color: rgb(155, 56, 211);
/* oklch */ color: oklch(55.4% 0.228 310.0);
Tailwind
colors: {
  custom: {
    50: '#bd78e1',
    500: '#9b38d3',
    950: '#000000',
  },
}
SCSS
$custom: #9b38d3;
$custom-light: #bd78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38d3",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 278.323,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55429,
    "c": 0.22793,
    "h": 310
  },
  "luminance": 0.145
}

Semantic roles & 50–950 ramp

primary
#9B38D3
secondary
#AAD592
accent
#E7417D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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