#9B38E1#9B38E1

#9B38E1 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.5% C 0.241 H 306.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9B38E1
RGBrgb(155, 56, 225)
HSLhsl(275, 74%, 55%)
HSVhsv(275, 75%, 88%)
CMYKcmyk(31.1%, 75.1%, 0%, 11.8%)
CIE-LABlab(45.95, 67.70, -67.96)
CIE-LCHlch(45.95, 95.92, 314.89°)
OKLaboklab(56.46% 0.144 -0.1932)
OKLCHoklch(56.46% 0.241 306.7)
XYZxyz(28.5194, 15.2335, 72.6575)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38E1 #7EE138
analogous
#4738E1 #9B38E1 #E138D2
triadic
#9B38E1 #E19B38 #38E19B
tetradic
#9B38E1 #E14738 #7EE138 #38D2E1
square
#9B38E1 #E14738 #7EE138 #38D2E1
split-complementary
#9B38E1 #D2E138 #38E147
monochromatic
#59158A #7C1DBF #9B38E1 #B66DE9 #D0A2F1

Accessibility & contrast

On white

5.19
#9B38E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9B38E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38E1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38E1#FFFFFF#000000##FFFFFF
##9B38E11.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#8F628B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b38e1;
/* rgb */ color: rgb(155, 56, 225);
/* oklch */ color: oklch(56.5% 0.241 306.7);
Tailwind
colors: {
  custom: {
    50: '#be79eb',
    500: '#9b38e1',
    950: '#000000',
  },
}
SCSS
$custom: #9b38e1;
$custom-light: #be79eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38e1",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 275.148,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56458,
    "c": 0.24099,
    "h": 306.7
  },
  "luminance": 0.15233
}

Semantic roles & 50–950 ramp

primary
#9B38E1
secondary
#B4DE97
accent
#F03784
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B38E1

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

Preview Lab → · Contrast checker → · Palette generator →

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