#9F45CA#9F45CA

#9F45CA is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.7% C 0.205 H 312.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9F45CA
RGBrgb(159, 69, 202)
HSLhsl(281, 56%, 53%)
HSVhsv(281, 66%, 79%)
CMYKcmyk(21.3%, 65.8%, 0%, 20.8%)
CIE-LABlab(46.83, 58.20, -53.33)
CIE-LCHlch(46.83, 78.94, 317.50°)
OKLaboklab(56.7% 0.1394 -0.1502)
OKLCHoklch(56.7% 0.205 312.9)
XYZxyz(27.0850, 15.8922, 57.5064)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45CA #70CA45
analogous
#5C45CA #9F45CA #CA45B2
triadic
#9F45CA #CA9F45 #45CA9F
tetradic
#9F45CA #CA5C45 #70CA45 #45B2CA
square
#9F45CA #CA5C45 #70CA45 #45B2CA
split-complementary
#9F45CA #B2CA45 #45CA5C
monochromatic
#592174 #7E2FA3 #9F45CA #B875D8 #D0A4E5

Accessibility & contrast

On white

5.03
#9F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9F45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45CA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45CA#FFFFFF#000000##FFFFFF
##9F45CA1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#3B71C7
Tritanopia (blue-blind)
#9A5F82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f45ca;
/* rgb */ color: rgb(159, 69, 202);
/* oklch */ color: oklch(56.7% 0.205 312.9);
Tailwind
colors: {
  custom: {
    50: '#bf7fdb',
    500: '#9f45ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f45ca;
$custom-light: #bf7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45ca",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 280.602,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56702,
    "c": 0.20494,
    "h": 312.9
  },
  "luminance": 0.15891
}

Semantic roles & 50–950 ramp

primary
#9F45CA
secondary
#ABD299
accent
#DF4979
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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