#9F45CF#9F45CF

#9F45CF is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.210 H 311.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9F45CF
RGBrgb(159, 69, 207)
HSLhsl(279, 59%, 54%)
HSVhsv(279, 67%, 81%)
CMYKcmyk(23.2%, 66.7%, 0%, 18.8%)
CIE-LABlab(47.15, 59.26, -55.70)
CIE-LCHlch(47.15, 81.33, 316.77°)
OKLaboklab(57.03% 0.1391 -0.1572)
OKLCHoklch(57.03% 0.21 311.5)
XYZxyz(27.6866, 16.1328, 60.6749)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45CF #75CF45
analogous
#5A45CF #9F45CF #CF45BA
triadic
#9F45CF #CF9F45 #45CF9F
tetradic
#9F45CF #CF5A45 #75CF45 #45BACF
square
#9F45CF #CF5A45 #75CF45 #45BACF
split-complementary
#9F45CF #BACF45 #45CF5A
monochromatic
#5B207A #7F2CAB #9F45CF #B876DC #D1A6E8

Accessibility & contrast

On white

4.97
#9F45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9F45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45CF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45CF#FFFFFF#000000##FFFFFF
##9F45CF1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#3672CC
Tritanopia (blue-blind)
#996184
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f45cf;
/* rgb */ color: rgb(159, 69, 207);
/* oklch */ color: oklch(57.0% 0.210 311.5);
Tailwind
colors: {
  custom: {
    50: '#bf7fde',
    500: '#9f45cf',
    950: '#000000',
  },
}
SCSS
$custom: #9f45cf;
$custom-light: #bf7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45cf",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 279.13,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5703,
    "c": 0.20987,
    "h": 311.5
  },
  "luminance": 0.16132
}

Semantic roles & 50–950 ramp

primary
#9F45CF
secondary
#AFD59B
accent
#E2467C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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