#9F45D8#9F45D8

#9F45D8 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.6% C 0.219 H 309.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9F45D8
RGBrgb(159, 69, 216)
HSLhsl(277, 65%, 56%)
HSVhsv(277, 68%, 85%)
CMYKcmyk(26.4%, 68.1%, 0%, 15.3%)
CIE-LABlab(47.73, 61.19, -59.92)
CIE-LCHlch(47.73, 85.64, 315.60°)
OKLaboklab(57.64% 0.1382 -0.1696)
OKLCHoklch(57.64% 0.219 309.2)
XYZxyz(28.8184, 16.5856, 66.6356)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45D8 #7ED845
analogous
#5545D8 #9F45D8 #D845C7
triadic
#9F45D8 #D89F45 #45D89F
tetradic
#9F45D8 #D85545 #7ED845 #45C7D8
square
#9F45D8 #D85545 #7ED845 #45C7D8
split-complementary
#9F45D8 #C7D845 #45D855
monochromatic
#5D1C86 #8027B9 #9F45D8 #B978E3 #D3AAED

Accessibility & contrast

On white

4.86
#9F45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9F45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45D8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45D8#FFFFFF#000000##FFFFFF
##9F45D81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#2972D5
Tritanopia (blue-blind)
#976589
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f45d8;
/* rgb */ color: rgb(159, 69, 216);
/* oklch */ color: oklch(57.6% 0.219 309.2);
Tailwind
colors: {
  custom: {
    50: '#c07fe5',
    500: '#9f45d8',
    950: '#000000',
  },
}
SCSS
$custom: #9f45d8;
$custom-light: #c07fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45d8",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 276.735,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57635,
    "c": 0.21877,
    "h": 309.2
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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