#9B38D9#9B38D9

#9B38D9 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.9% C 0.234 H 308.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9B38D9
RGBrgb(155, 56, 217)
HSLhsl(277, 68%, 54%)
HSVhsv(277, 74%, 85%)
CMYKcmyk(28.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.37, 65.99, -64.34)
CIE-LCHlch(45.37, 92.17, 315.73°)
OKLaboklab(55.86% 0.1456 -0.1826)
OKLCHoklch(55.86% 0.234 308.6)
XYZxyz(27.4535, 14.8071, 67.0440)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38D9 #76D938
analogous
#4A38D9 #9B38D9 #D938C7
triadic
#9B38D9 #D99B38 #38D99B
tetradic
#9B38D9 #D94A38 #76D938 #38C7D9
square
#9B38D9 #D94A38 #76D938 #38C7D9
split-complementary
#9B38D9 #C7D938 #38D94A
monochromatic
#57187E #7A22B2 #9B38D9 #B56BE3 #CF9FED

Accessibility & contrast

On white

5.30
#9B38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9B38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38D9
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38D9#FFFFFF#000000##FFFFFF
##9B38D91.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#915F86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b38d9;
/* rgb */ color: rgb(155, 56, 217);
/* oklch */ color: oklch(55.9% 0.234 308.6);
Tailwind
colors: {
  custom: {
    50: '#be78e6',
    500: '#9b38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9b38d9;
$custom-light: #be78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38d9",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 276.894,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55864,
    "c": 0.23353,
    "h": 308.6
  },
  "luminance": 0.14807
}

Semantic roles & 50–950 ramp

primary
#9B38D9
secondary
#AED994
accent
#EB3D80
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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