#9F45D7#9F45D7

#9F45D7 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.218 H 309.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9F45D7
RGBrgb(159, 69, 215)
HSLhsl(277, 65%, 56%)
HSVhsv(277, 68%, 84%)
CMYKcmyk(26%, 67.9%, 0%, 15.7%)
CIE-LABlab(47.67, 60.97, -59.45)
CIE-LCHlch(47.67, 85.16, 315.72°)
OKLaboklab(57.57% 0.1383 -0.1682)
OKLCHoklch(57.57% 0.218 309.4)
XYZxyz(28.6895, 16.5340, 65.9568)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45D7 #7DD745
analogous
#5645D7 #9F45D7 #D745C6
triadic
#9F45D7 #D79F45 #45D79F
tetradic
#9F45D7 #D75645 #7DD745 #45C6D7
square
#9F45D7 #D75645 #7DD745 #45C6D7
split-complementary
#9F45D7 #C6D745 #45D756
monochromatic
#5D1D85 #8027B7 #9F45D7 #B977E2 #D3AAED

Accessibility & contrast

On white

4.88
#9F45D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9F45D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45D7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45D7#FFFFFF#000000##FFFFFF
##9F45D71.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2B72D4
Tritanopia (blue-blind)
#976489
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f45d7;
/* rgb */ color: rgb(159, 69, 215);
/* oklch */ color: oklch(57.6% 0.218 309.4);
Tailwind
colors: {
  custom: {
    50: '#c07fe4',
    500: '#9f45d7',
    950: '#000000',
  },
}
SCSS
$custom: #9f45d7;
$custom-light: #c07fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45d7",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 276.986,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.21777,
    "h": 309.4
  },
  "luminance": 0.16533
}

Semantic roles & 50–950 ramp

primary
#9F45D7
secondary
#B5DA9E
accent
#E84080
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45D7

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

Preview Lab → · Contrast checker → · Palette generator →

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