#9F45C8#9F45C8

#9F45C8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.6% C 0.203 H 313.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9F45C8
RGBrgb(159, 69, 200)
HSLhsl(281, 54%, 53%)
HSVhsv(281, 66%, 78%)
CMYKcmyk(20.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(46.71, 57.78, -52.38)
CIE-LCHlch(46.71, 77.98, 317.81°)
OKLaboklab(56.57% 0.1395 -0.1474)
OKLCHoklch(56.57% 0.203 313.4)
XYZxyz(26.8497, 15.7981, 56.2673)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45C8 #6EC845
analogous
#5D45C8 #9F45C8 #C845B0
triadic
#9F45C8 #C89F45 #45C89F
tetradic
#9F45C8 #C85D45 #6EC845 #45B0C8
square
#9F45C8 #C85D45 #6EC845 #45B0C8
split-complementary
#9F45C8 #B0C845 #45C85D
monochromatic
#582171 #7D2FA0 #9F45C8 #B774D6 #D0A3E4

Accessibility & contrast

On white

5.05
#9F45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9F45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45C8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45C8#FFFFFF#000000##FFFFFF
##9F45C81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#3D71C5
Tritanopia (blue-blind)
#9B5F81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f45c8;
/* rgb */ color: rgb(159, 69, 200);
/* oklch */ color: oklch(56.6% 0.203 313.4);
Tailwind
colors: {
  custom: {
    50: '#bf7fd9',
    500: '#9f45c8',
    950: '#000000',
  },
}
SCSS
$custom: #9f45c8;
$custom-light: #bf7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45c8",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 281.221,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56573,
    "c": 0.20297,
    "h": 313.4
  },
  "luminance": 0.15797
}

Semantic roles & 50–950 ramp

primary
#9F45C8
secondary
#AAD198
accent
#DE4A78
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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