#9B4EC2#9B4EC2

#9B4EC2 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.183 H 312.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9B4EC2
RGBrgb(155, 78, 194)
HSLhsl(280, 49%, 53%)
HSVhsv(280, 60%, 76%)
CMYKcmyk(20.1%, 59.8%, 0%, 23.9%)
CIE-LABlab(47.38, 51.28, -47.86)
CIE-LCHlch(47.38, 70.14, 316.98°)
OKLaboklab(56.83% 0.1238 -0.1344)
OKLCHoklch(56.83% 0.183 312.7)
XYZxyz(25.9779, 16.3131, 52.8087)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B4EC2 #75C24E
analogous
#614EC2 #9B4EC2 #C24EAF
triadic
#9B4EC2 #C29B4E #4EC29B
tetradic
#9B4EC2 #C2614E #75C24E #4EAFC2
square
#9B4EC2 #C2614E #75C24E #4EAFC2
split-complementary
#9B4EC2 #AFC24E #4EC261
monochromatic
#57266F #7A369D #9B4EC2 #B57CD2 #CEA9E1

Accessibility & contrast

On white

4.93
#9B4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9B4EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B4EC2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B4EC2#FFFFFF#000000##FFFFFF
##9B4EC21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#4772BF
Tritanopia (blue-blind)
#976381
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9b4ec2;
/* rgb */ color: rgb(155, 78, 194);
/* oklch */ color: oklch(56.8% 0.183 312.7);
Tailwind
colors: {
  custom: {
    50: '#bb83d5',
    500: '#9b4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #9b4ec2;
$custom-light: #bb83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b4ec2",
  "rgb": {
    "r": 155,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 279.828,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56833,
    "c": 0.18272,
    "h": 312.7
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#9B4EC2
secondary
#AECF9D
accent
#D8507D
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #9B4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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