#9C45DC#9C45DC

#9C45DC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.222 H 307.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9C45DC
RGBrgb(156, 69, 220)
HSLhsl(275, 68%, 57%)
HSVhsv(275, 69%, 86%)
CMYKcmyk(29.1%, 68.6%, 0%, 13.7%)
CIE-LABlab(47.61, 61.46, -62.41)
CIE-LCHlch(47.61, 87.59, 314.56°)
OKLaboklab(57.55% 0.1339 -0.177)
OKLCHoklch(57.55% 0.222 307.1)
XYZxyz(28.7540, 16.4918, 69.3647)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C45DC #85DC45
analogous
#5145DC #9C45DC #DC45D0
triadic
#9C45DC #DC9C45 #45DC9C
tetradic
#9C45DC #DC5145 #85DC45 #45D0DC
square
#9C45DC #DC5145 #85DC45 #45D0DC
split-complementary
#9C45DC #D0DC45 #45DC51
monochromatic
#5C1A8C #7E24C0 #9C45DC #B779E6 #D3ACEF

Accessibility & contrast

On white

4.89
#9C45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9C45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C45DC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C45DC#FFFFFF#000000##FFFFFF
##9C45DC1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#1A72D9
Tritanopia (blue-blind)
#91678C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9c45dc;
/* rgb */ color: rgb(156, 69, 220);
/* oklch */ color: oklch(57.6% 0.222 307.1);
Tailwind
colors: {
  custom: {
    50: '#be7fe8',
    500: '#9c45dc',
    950: '#000000',
  },
}
SCSS
$custom: #9c45dc;
$custom-light: #be7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9c45dc",
  "rgb": {
    "r": 156,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 274.57,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57551,
    "c": 0.22192,
    "h": 307.1
  },
  "luminance": 0.16491
}

Semantic roles & 50–950 ramp

primary
#9C45DC
secondary
#BADDA0
accent
#EB3D87
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9C45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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