#9C45CB#9C45CB

#9C45CB is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.4% C 0.205 H 311.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9C45CB
RGBrgb(156, 69, 203)
HSLhsl(279, 56%, 53%)
HSVhsv(279, 66%, 80%)
CMYKcmyk(23.2%, 66%, 0%, 20.4%)
CIE-LABlab(46.49, 57.75, -54.47)
CIE-LCHlch(46.49, 79.39, 316.67°)
OKLaboklab(56.39% 0.1355 -0.1537)
OKLCHoklch(56.39% 0.205 311.4)
XYZxyz(26.6159, 15.6366, 58.1044)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C45CB #74CB45
analogous
#5945CB #9C45CB #CB45B7
triadic
#9C45CB #CB9C45 #45CB9C
tetradic
#9C45CB #CB5945 #74CB45 #45B7CB
square
#9C45CB #CB5945 #74CB45 #45B7CB
split-complementary
#9C45CB #B7CB45 #45CB59
monochromatic
#572175 #7B2EA5 #9C45CB #B575D8 #CFA5E6

Accessibility & contrast

On white

5.09
#9C45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9C45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C45CB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C45CB#FFFFFF#000000##FFFFFF
##9C45CB1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#966082
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c45cb;
/* rgb */ color: rgb(156, 69, 203);
/* oklch */ color: oklch(56.4% 0.205 311.4);
Tailwind
colors: {
  custom: {
    50: '#bd7fdb',
    500: '#9c45cb',
    950: '#000000',
  },
}
SCSS
$custom: #9c45cb;
$custom-light: #bd7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c45cb",
  "rgb": {
    "r": 156,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 278.955,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56394,
    "c": 0.2049,
    "h": 311.4
  },
  "luminance": 0.15636
}

Semantic roles & 50–950 ramp

primary
#9C45CB
secondary
#ADD399
accent
#E0487D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9C45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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