#9B38E2#9B38E2

#9B38E2 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.5% C 0.242 H 306.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9B38E2
RGBrgb(155, 56, 226)
HSLhsl(275, 75%, 55%)
HSVhsv(275, 75%, 89%)
CMYKcmyk(31.4%, 75.2%, 0%, 11.4%)
CIE-LABlab(46.03, 67.92, -68.41)
CIE-LCHlch(46.03, 96.39, 314.79°)
OKLaboklab(56.53% 0.1438 -0.1945)
OKLCHoklch(56.53% 0.242 306.5)
XYZxyz(28.6562, 15.2882, 73.3780)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38E2 #7FE238
analogous
#4638E2 #9B38E2 #E238D4
triadic
#9B38E2 #E29B38 #38E29B
tetradic
#9B38E2 #E24638 #7FE238 #38D4E2
square
#9B38E2 #E24638 #7FE238 #38D4E2
split-complementary
#9B38E2 #D4E238 #38E246
monochromatic
#5A148B #7C1CC1 #9B38E2 #B66DEA #D1A3F2

Accessibility & contrast

On white

5.18
#9B38E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9B38E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38E2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38E2#FFFFFF#000000##FFFFFF
##9B38E21.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#8E628B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b38e2;
/* rgb */ color: rgb(155, 56, 226);
/* oklch */ color: oklch(56.5% 0.242 306.5);
Tailwind
colors: {
  custom: {
    50: '#be79ec',
    500: '#9b38e2',
    950: '#000000',
  },
}
SCSS
$custom: #9b38e2;
$custom-light: #be79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38e2",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 226
  },
  "hsl": {
    "h": 274.941,
    "s": 74.561,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56534,
    "c": 0.24192,
    "h": 306.5
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#9B38E2
secondary
#B5DE97
accent
#F13785
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B38E2

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

Preview Lab → · Contrast checker → · Palette generator →

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