#9B38DD#9B38DD

#9B38DD is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 56.2% C 0.237 H 307.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9B38DD
RGBrgb(155, 56, 221)
HSLhsl(276, 71%, 54%)
HSVhsv(276, 75%, 87%)
CMYKcmyk(29.9%, 74.7%, 0%, 13.3%)
CIE-LABlab(45.66, 66.84, -66.16)
CIE-LCHlch(45.66, 94.05, 315.30°)
OKLaboklab(56.16% 0.1448 -0.1879)
OKLCHoklch(56.16% 0.237 307.6)
XYZxyz(27.9801, 15.0178, 69.8173)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38DD #7ADD38
analogous
#4938DD #9B38DD #DD38CC
triadic
#9B38DD #DD9B38 #38DD9B
tetradic
#9B38DD #DD4938 #7ADD38 #38CCDD
square
#9B38DD #DD4938 #7ADD38 #38CCDD
split-complementary
#9B38DD #CCDD38 #38DD49
monochromatic
#581784 #7B1FB8 #9B38DD #B56CE6 #D0A1EF

Accessibility & contrast

On white

5.25
#9B38DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9B38DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38DD
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38DD#FFFFFF#000000##FFFFFF
##9B38DD1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#906089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b38dd;
/* rgb */ color: rgb(155, 56, 221);
/* oklch */ color: oklch(56.2% 0.237 307.6);
Tailwind
colors: {
  custom: {
    50: '#be78e9',
    500: '#9b38dd',
    950: '#000000',
  },
}
SCSS
$custom: #9b38dd;
$custom-light: #be78e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38dd",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 276,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56159,
    "c": 0.23725,
    "h": 307.6
  },
  "luminance": 0.15017
}

Semantic roles & 50–950 ramp

primary
#9B38DD
secondary
#B1DB95
accent
#EE3A82
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B38DD

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

Preview Lab → · Contrast checker → · Palette generator →

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