#9F45D9#9F45D9

#9F45D9 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.220 H 308.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9F45D9
RGBrgb(159, 69, 217)
HSLhsl(276, 66%, 56%)
HSVhsv(276, 68%, 85%)
CMYKcmyk(26.7%, 68.2%, 0%, 14.9%)
CIE-LABlab(47.80, 61.41, -60.38)
CIE-LCHlch(47.80, 86.12, 315.48°)
OKLaboklab(57.7% 0.1381 -0.1709)
OKLCHoklch(57.7% 0.22 308.9)
XYZxyz(28.9481, 16.6374, 67.3186)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45D9 #7FD945
analogous
#5545D9 #9F45D9 #D945C9
triadic
#9F45D9 #D99F45 #45D99F
tetradic
#9F45D9 #D95545 #7FD945 #45C9D9
square
#9F45D9 #D95545 #7FD945 #45C9D9
split-complementary
#9F45D9 #C9D945 #45D955
monochromatic
#5D1C88 #8026BB #9F45D9 #B978E3 #D3ABEE

Accessibility & contrast

On white

4.85
#9F45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9F45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45D9
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45D9#FFFFFF#000000##FFFFFF
##9F45D91.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#2773D6
Tritanopia (blue-blind)
#96658A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f45d9;
/* rgb */ color: rgb(159, 69, 217);
/* oklch */ color: oklch(57.7% 0.220 308.9);
Tailwind
colors: {
  custom: {
    50: '#c07fe6',
    500: '#9f45d9',
    950: '#000000',
  },
}
SCSS
$custom: #9f45d9;
$custom-light: #c07fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45d9",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 276.486,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57704,
    "c": 0.21975,
    "h": 308.9
  },
  "luminance": 0.16637
}

Semantic roles & 50–950 ramp

primary
#9F45D9
secondary
#B6DB9E
accent
#E93F82
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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