#9B45D2#9B45D2

#9B45D2 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.212 H 309.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9B45D2
RGBrgb(155, 69, 210)
HSLhsl(277, 61%, 55%)
HSVhsv(277, 67%, 82%)
CMYKcmyk(26.2%, 67.1%, 0%, 17.6%)
CIE-LABlab(46.81, 59.05, -57.99)
CIE-LCHlch(46.81, 82.76, 315.52°)
OKLaboklab(56.74% 0.1337 -0.164)
OKLCHoklch(56.74% 0.212 309.2)
XYZxyz(27.2762, 15.8784, 62.5882)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B45D2 #7CD245
analogous
#5545D2 #9B45D2 #D245C2
triadic
#9B45D2 #D29B45 #45D29B
tetradic
#9B45D2 #D25545 #7CD245 #45C2D2
square
#9B45D2 #D25545 #7CD245 #45C2D2
split-complementary
#9B45D2 #C2D245 #45D255
monochromatic
#591F7E #7C2AAF #9B45D2 #B576DE #D0A8EA

Accessibility & contrast

On white

5.03
#9B45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9B45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B45D2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B45D2#FFFFFF#000000##FFFFFF
##9B45D21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#2C70CF
Tritanopia (blue-blind)
#936386
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b45d2;
/* rgb */ color: rgb(155, 69, 210);
/* oklch */ color: oklch(56.7% 0.212 309.2);
Tailwind
colors: {
  custom: {
    50: '#bd7fe1',
    500: '#9b45d2',
    950: '#000000',
  },
}
SCSS
$custom: #9b45d2;
$custom-light: #bd7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b45d2",
  "rgb": {
    "r": 155,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 276.596,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5674,
    "c": 0.21161,
    "h": 309.2
  },
  "luminance": 0.15878
}

Semantic roles & 50–950 ramp

primary
#9B45D2
secondary
#B3D79C
accent
#E44482
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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