#9F45CE#9F45CE

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

Color values

HEX#9F45CE
RGBrgb(159, 69, 206)
HSLhsl(279, 58%, 54%)
HSVhsv(279, 67%, 81%)
CMYKcmyk(22.8%, 66.5%, 0%, 19.2%)
CIE-LABlab(47.08, 59.04, -55.23)
CIE-LCHlch(47.08, 80.85, 316.91°)
OKLaboklab(56.96% 0.1391 -0.1558)
OKLCHoklch(56.96% 0.209 311.8)
XYZxyz(27.5647, 16.0841, 60.0330)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45CE #74CE45
analogous
#5B45CE #9F45CE #CE45B9
triadic
#9F45CE #CE9F45 #45CE9F
tetradic
#9F45CE #CE5B45 #74CE45 #45B9CE
square
#9F45CE #CE5B45 #74CE45 #45B9CE
split-complementary
#9F45CE #B9CE45 #45CE5B
monochromatic
#5A2079 #7E2DA9 #9F45CE #B875DB #D1A6E8

Accessibility & contrast

On white

4.98
#9F45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9F45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45CE
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45CE#FFFFFF#000000##FFFFFF
##9F45CE1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#3771CB
Tritanopia (blue-blind)
#996184
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f45ce;
/* rgb */ color: rgb(159, 69, 206);
/* oklch */ color: oklch(57.0% 0.209 311.8);
Tailwind
colors: {
  custom: {
    50: '#bf7fde',
    500: '#9f45ce',
    950: '#000000',
  },
}
SCSS
$custom: #9f45ce;
$custom-light: #bf7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45ce",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 279.416,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56964,
    "c": 0.20888,
    "h": 311.8
  },
  "luminance": 0.16083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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