#9C45DA#9C45DA

#9C45DA is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.4% C 0.220 H 307.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9C45DA
RGBrgb(156, 69, 218)
HSLhsl(275, 67%, 56%)
HSVhsv(275, 68%, 85%)
CMYKcmyk(28.4%, 68.3%, 0%, 14.5%)
CIE-LABlab(47.48, 61.01, -61.49)
CIE-LCHlch(47.48, 86.63, 314.78°)
OKLaboklab(57.41% 0.1341 -0.1743)
OKLCHoklch(57.41% 0.22 307.6)
XYZxyz(28.4907, 16.3865, 67.9781)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C45DA #83DA45
analogous
#5245DA #9C45DA #DA45CD
triadic
#9C45DA #DA9C45 #45DA9C
tetradic
#9C45DA #DA5245 #83DA45 #45CDDA
square
#9C45DA #DA5245 #83DA45 #45CDDA
split-complementary
#9C45DA #CDDA45 #45DA52
monochromatic
#5C1B89 #7E25BC #9C45DA #B778E4 #D2ABEE

Accessibility & contrast

On white

4.91
#9C45DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9C45DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C45DA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C45DA#FFFFFF#000000##FFFFFF
##9C45DA1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#1F71D7
Tritanopia (blue-blind)
#92668A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9c45da;
/* rgb */ color: rgb(156, 69, 218);
/* oklch */ color: oklch(57.4% 0.220 307.6);
Tailwind
colors: {
  custom: {
    50: '#be7fe6',
    500: '#9c45da',
    950: '#000000',
  },
}
SCSS
$custom: #9c45da;
$custom-light: #be7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c45da",
  "rgb": {
    "r": 156,
    "g": 69,
    "b": 218
  },
  "hsl": {
    "h": 275.034,
    "s": 66.816,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57412,
    "c": 0.21992,
    "h": 307.6
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#9C45DA
secondary
#B8DC9F
accent
#EA3E85
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9C45DA

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

Preview Lab → · Contrast checker → · Palette generator →

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