#9F45BC#9F45BC

#9F45BC is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.8% C 0.191 H 317.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9F45BC
RGBrgb(159, 69, 188)
HSLhsl(285, 47%, 50%)
HSVhsv(285, 63%, 74%)
CMYKcmyk(15.4%, 63.3%, 0%, 26.3%)
CIE-LABlab(45.99, 55.30, -46.57)
CIE-LCHlch(45.99, 72.30, 319.90°)
OKLaboklab(55.82% 0.1399 -0.1304)
OKLCHoklch(55.82% 0.191 317)
XYZxyz(25.5020, 15.2590, 49.1691)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45BC #62BC45
analogous
#6345BC #9F45BC #BC459E
triadic
#9F45BC #BC9F45 #45BC9F
tetradic
#9F45BC #BC6345 #62BC45 #459EBC
square
#9F45BC #BC6345 #62BC45 #459EBC
split-complementary
#9F45BC #9EBC45 #45BC63
monochromatic
#542463 #7A3490 #9F45BC #B672CC #CD9FDC

Accessibility & contrast

On white

5.18
#9F45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9F45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45BC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45BC#FFFFFF#000000##FFFFFF
##9F45BC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#4870B9
Tritanopia (blue-blind)
#9E5A7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f45bc;
/* rgb */ color: rgb(159, 69, 188);
/* oklch */ color: oklch(55.8% 0.191 317.0);
Tailwind
colors: {
  custom: {
    50: '#bf7ed1',
    500: '#9f45bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f45bc;
$custom-light: #bf7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45bc",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 285.378,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55821,
    "c": 0.19123,
    "h": 317
  },
  "luminance": 0.15258
}

Semantic roles & 50–950 ramp

primary
#9F45BC
secondary
#A1C994
accent
#D75172
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9F45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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