#9B38CF#9B38CF

#9B38CF is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.1% C 0.224 H 311.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9B38CF
RGBrgb(155, 56, 207)
HSLhsl(279, 61%, 52%)
HSVhsv(279, 73%, 81%)
CMYKcmyk(25.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(44.66, 63.89, -59.74)
CIE-LCHlch(44.66, 87.47, 316.92°)
OKLaboklab(55.14% 0.1472 -0.1691)
OKLCHoklch(55.14% 0.224 311)
XYZxyz(26.1921, 14.3025, 60.4003)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38CF #6CCF38
analogous
#5038CF #9B38CF #CF38B8
triadic
#9B38CF #CF9B38 #38CF9B
tetradic
#9B38CF #CF5038 #6CCF38 #38B8CF
square
#9B38CF #CF5038 #6CCF38 #38B8CF
split-complementary
#9B38CF #B8CF38 #38CF50
monochromatic
#541B71 #7827A3 #9B38CF #B469DB #CD9BE7

Accessibility & contrast

On white

5.44
#9B38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9B38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38CF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38CF#FFFFFF#000000##FFFFFF
##9B38CF1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#1D6BCC
Tritanopia (blue-blind)
#945A81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9b38cf;
/* rgb */ color: rgb(155, 56, 207);
/* oklch */ color: oklch(55.1% 0.224 311.0);
Tailwind
colors: {
  custom: {
    50: '#bd78de',
    500: '#9b38cf',
    950: '#000000',
  },
}
SCSS
$custom: #9b38cf;
$custom-light: #bd78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38cf",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 279.338,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55143,
    "c": 0.22421,
    "h": 311
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#9B38CF
secondary
#A7D390
accent
#E4447B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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