#9F45CB#9F45CB

#9F45CB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.206 H 312.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9F45CB
RGBrgb(159, 69, 203)
HSLhsl(280, 56%, 53%)
HSVhsv(280, 66%, 80%)
CMYKcmyk(21.7%, 66%, 0%, 20.4%)
CIE-LABlab(46.90, 58.41, -53.81)
CIE-LCHlch(46.90, 79.42, 317.35°)
OKLaboklab(56.77% 0.1393 -0.1516)
OKLCHoklch(56.77% 0.206 312.6)
XYZxyz(27.2038, 15.9397, 58.1320)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45CB #71CB45
analogous
#5C45CB #9F45CB #CB45B4
triadic
#9F45CB #CB9F45 #45CB9F
tetradic
#9F45CB #CB5C45 #71CB45 #45B4CB
square
#9F45CB #CB5C45 #71CB45 #45B4CB
split-complementary
#9F45CB #B4CB45 #45CB5C
monochromatic
#592175 #7E2EA5 #9F45CB #B875D8 #D0A5E6

Accessibility & contrast

On white

5.01
#9F45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9F45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45CB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45CB#FFFFFF#000000##FFFFFF
##9F45CB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#3A71C8
Tritanopia (blue-blind)
#9A6082
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f45cb;
/* rgb */ color: rgb(159, 69, 203);
/* oklch */ color: oklch(56.8% 0.206 312.6);
Tailwind
colors: {
  custom: {
    50: '#bf7fdb',
    500: '#9f45cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f45cb;
$custom-light: #bf7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45cb",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 280.299,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56767,
    "c": 0.20593,
    "h": 312.6
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#9F45CB
secondary
#ACD399
accent
#E0487A
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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