#9B38CD#9B38CD

#9B38CD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 55.0% C 0.222 H 311.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9B38CD
RGBrgb(155, 56, 205)
HSLhsl(280, 60%, 51%)
HSVhsv(280, 73%, 80%)
CMYKcmyk(24.4%, 72.7%, 0%, 19.6%)
CIE-LABlab(44.53, 63.47, -58.81)
CIE-LCHlch(44.53, 86.53, 317.19°)
OKLaboklab(55% 0.1475 -0.1663)
OKLCHoklch(55% 0.222 311.6)
XYZxyz(25.9491, 14.2054, 59.1207)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B38CD #6ACD38
analogous
#5038CD #9B38CD #CD38B4
triadic
#9B38CD #CD9B38 #38CD9B
tetradic
#9B38CD #CD5038 #6ACD38 #38B4CD
square
#9B38CD #CD5038 #6ACD38 #38B4CD
split-complementary
#9B38CD #B4CD38 #38CD50
monochromatic
#531C6F #7828A0 #9B38CD #B469D9 #CC9AE6

Accessibility & contrast

On white

5.47
#9B38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9B38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B38CD
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B38CD#FFFFFF#000000##FFFFFF
##9B38CD1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#216BCA
Tritanopia (blue-blind)
#955A80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b38cd;
/* rgb */ color: rgb(155, 56, 205);
/* oklch */ color: oklch(55.0% 0.222 311.6);
Tailwind
colors: {
  custom: {
    50: '#bd78dd',
    500: '#9b38cd',
    950: '#000000',
  },
}
SCSS
$custom: #9b38cd;
$custom-light: #bd78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b38cd",
  "rgb": {
    "r": 155,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 279.866,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55002,
    "c": 0.22235,
    "h": 311.6
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

primary
#9B38CD
secondary
#A6D18F
accent
#E3457A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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