#9A45BC#9A45BC

#9A45BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.2% C 0.189 H 315.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9A45BC
RGBrgb(154, 69, 188)
HSLhsl(283, 47%, 50%)
HSVhsv(283, 63%, 74%)
CMYKcmyk(18.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(45.30, 54.11, -47.70)
CIE-LCHlch(45.30, 72.14, 318.60°)
OKLaboklab(55.18% 0.1337 -0.1339)
OKLCHoklch(55.18% 0.189 315)
XYZxyz(24.5302, 14.7579, 49.1236)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A45BC #67BC45
analogous
#5E45BC #9A45BC #BC45A3
triadic
#9A45BC #BC9A45 #45BC9A
tetradic
#9A45BC #BC5E45 #67BC45 #45A3BC
square
#9A45BC #BC5E45 #67BC45 #45A3BC
split-complementary
#9A45BC #A3BC45 #45BC5E
monochromatic
#512463 #763490 #9A45BC #B272CC #CB9FDC

Accessibility & contrast

On white

5.31
#9A45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9A45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A45BC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A45BC#FFFFFF#000000##FFFFFF
##9A45BC1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1766C0
Deuteranopia (green-blind)
#426DB9
Tritanopia (blue-blind)
#975B7A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9a45bc;
/* rgb */ color: rgb(154, 69, 188);
/* oklch */ color: oklch(55.2% 0.189 315.0);
Tailwind
colors: {
  custom: {
    50: '#bb7ed1',
    500: '#9a45bc',
    950: '#000000',
  },
}
SCSS
$custom: #9a45bc;
$custom-light: #bb7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a45bc",
  "rgb": {
    "r": 154,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 282.857,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55181,
    "c": 0.18919,
    "h": 315
  },
  "luminance": 0.14757
}

Semantic roles & 50–950 ramp

primary
#9A45BC
secondary
#A3C994
accent
#D75177
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9A45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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