#9F45BB#9F45BB

#9F45BB is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.190 H 317.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9F45BB
RGBrgb(159, 69, 187)
HSLhsl(286, 46%, 50%)
HSVhsv(286, 63%, 73%)
CMYKcmyk(15%, 63.1%, 0%, 26.7%)
CIE-LABlab(45.93, 55.10, -46.08)
CIE-LCHlch(45.93, 71.83, 320.10°)
OKLaboklab(55.76% 0.1399 -0.129)
OKLCHoklch(55.76% 0.19 317.3)
XYZxyz(25.3945, 15.2160, 48.6034)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45BB #61BB45
analogous
#6445BB #9F45BB #BB459C
triadic
#9F45BB #BB9F45 #45BB9F
tetradic
#9F45BB #BB6445 #61BB45 #459CBB
square
#9F45BB #BB6445 #61BB45 #459CBB
split-complementary
#9F45BB #9CBB45 #45BB64
monochromatic
#532462 #79348F #9F45BB #B672CB #CD9FDC

Accessibility & contrast

On white

5.19
#9F45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9F45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45BB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45BB#FFFFFF#000000##FFFFFF
##9F45BB1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f45bb;
/* rgb */ color: rgb(159, 69, 187);
/* oklch */ color: oklch(55.8% 0.190 317.3);
Tailwind
colors: {
  custom: {
    50: '#be7ed0',
    500: '#9f45bb',
    950: '#000000',
  },
}
SCSS
$custom: #9f45bb;
$custom-light: #be7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45bb",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 285.763,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5576,
    "c": 0.19027,
    "h": 317.3
  },
  "luminance": 0.15215
}

Semantic roles & 50–950 ramp

primary
#9F45BB
secondary
#A0C894
accent
#D65271
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9F45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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