#9F45D6#9F45D6

#9F45D6 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.5% C 0.217 H 309.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9F45D6
RGBrgb(159, 69, 214)
HSLhsl(277, 64%, 55%)
HSVhsv(277, 68%, 84%)
CMYKcmyk(25.7%, 67.8%, 0%, 16.1%)
CIE-LABlab(47.60, 60.76, -58.99)
CIE-LCHlch(47.60, 84.68, 315.85°)
OKLaboklab(57.5% 0.1384 -0.1668)
OKLCHoklch(57.5% 0.217 309.7)
XYZxyz(28.5614, 16.4828, 65.2822)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45D6 #7CD645
analogous
#5645D6 #9F45D6 #D645C5
triadic
#9F45D6 #D69F45 #45D69F
tetradic
#9F45D6 #D65645 #7CD645 #45C5D6
square
#9F45D6 #D65645 #7CD645 #45C5D6
split-complementary
#9F45D6 #C5D645 #45D656
monochromatic
#5D1D84 #8028B6 #9F45D6 #B977E1 #D3A9EC

Accessibility & contrast

On white

4.89
#9F45D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9F45D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45D6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45D6#FFFFFF#000000##FFFFFF
##9F45D61.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#2C72D3
Tritanopia (blue-blind)
#976488
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f45d6;
/* rgb */ color: rgb(159, 69, 214);
/* oklch */ color: oklch(57.5% 0.217 309.7);
Tailwind
colors: {
  custom: {
    50: '#c07fe3',
    500: '#9f45d6',
    950: '#000000',
  },
}
SCSS
$custom: #9f45d6;
$custom-light: #c07fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45d6",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 277.241,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57499,
    "c": 0.21678,
    "h": 309.7
  },
  "luminance": 0.16482
}

Semantic roles & 50–950 ramp

primary
#9F45D6
secondary
#B4DA9D
accent
#E74180
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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