#9D45BC#9D45BC

#9D45BC is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.6% C 0.190 H 316.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9D45BC
RGBrgb(157, 69, 188)
HSLhsl(284, 47%, 50%)
HSVhsv(284, 63%, 74%)
CMYKcmyk(16.5%, 63.3%, 0%, 26.3%)
CIE-LABlab(45.71, 54.83, -47.02)
CIE-LCHlch(45.71, 72.23, 319.38°)
OKLaboklab(55.56% 0.1374 -0.1318)
OKLCHoklch(55.56% 0.19 316.2)
XYZxyz(25.1085, 15.0561, 49.1507)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45BC #64BC45
analogous
#6145BC #9D45BC #BC459F
triadic
#9D45BC #BC9D45 #45BC9D
tetradic
#9D45BC #BC6145 #64BC45 #459FBC
square
#9D45BC #BC6145 #64BC45 #459FBC
split-complementary
#9D45BC #9FBC45 #45BC61
monochromatic
#522463 #783490 #9D45BC #B572CC #CC9FDC

Accessibility & contrast

On white

5.24
#9D45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9D45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45BC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45BC#FFFFFF#000000##FFFFFF
##9D45BC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C0
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#9B5A7A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d45bc;
/* rgb */ color: rgb(157, 69, 188);
/* oklch */ color: oklch(55.6% 0.190 316.2);
Tailwind
colors: {
  custom: {
    50: '#bd7ed1',
    500: '#9d45bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d45bc;
$custom-light: #bd7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45bc",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 284.37,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55563,
    "c": 0.1904,
    "h": 316.2
  },
  "luminance": 0.15055
}

Semantic roles & 50–950 ramp

primary
#9D45BC
secondary
#A2C994
accent
#D75174
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9D45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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