#9B3ED4#9B3ED4

#9B3ED4 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.222 H 309.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9B3ED4
RGBrgb(155, 62, 212)
HSLhsl(277, 64%, 54%)
HSVhsv(277, 71%, 83%)
CMYKcmyk(26.9%, 70.8%, 0%, 16.9%)
CIE-LABlab(45.86, 62.52, -60.68)
CIE-LCHlch(45.86, 87.13, 315.86°)
OKLaboklab(56.1% 0.1407 -0.1719)
OKLCHoklch(56.1% 0.222 309.3)
XYZxyz(27.1215, 15.1678, 63.7735)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B3ED4 #77D43E
analogous
#503ED4 #9B3ED4 #D43EC2
triadic
#9B3ED4 #D49B3E #3ED49B
tetradic
#9B3ED4 #D4503E #77D43E #3EC2D4
square
#9B3ED4 #D4503E #77D43E #3EC2D4
split-complementary
#9B3ED4 #C2D43E #3ED450
monochromatic
#571C7C #7B27AE #9B3ED4 #B570DF #CFA2EA

Accessibility & contrast

On white

5.21
#9B3ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9B3ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B3ED4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B3ED4#FFFFFF#000000##FFFFFF
##9B3ED41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#1C6ED1
Tritanopia (blue-blind)
#936085
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b3ed4;
/* rgb */ color: rgb(155, 62, 212);
/* oklch */ color: oklch(56.1% 0.222 309.3);
Tailwind
colors: {
  custom: {
    50: '#bd7be2',
    500: '#9b3ed4',
    950: '#000000',
  },
}
SCSS
$custom: #9b3ed4;
$custom-light: #bd7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b3ed4",
  "rgb": {
    "r": 155,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 277.2,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56104,
    "c": 0.22212,
    "h": 309.3
  },
  "luminance": 0.15167
}

Semantic roles & 50–950 ramp

primary
#9B3ED4
secondary
#AFD797
accent
#E74180
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B3ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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