#9F45E5#9F45E5

#9F45E5 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.5% C 0.232 H 306.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9F45E5
RGBrgb(159, 69, 229)
HSLhsl(274, 75%, 58%)
HSVhsv(274, 70%, 90%)
CMYKcmyk(30.6%, 69.9%, 0%, 10.2%)
CIE-LABlab(48.62, 64.04, -65.88)
CIE-LCHlch(48.62, 91.88, 314.19°)
OKLaboklab(58.54% 0.1366 -0.1871)
OKLCHoklch(58.54% 0.232 306.1)
XYZxyz(30.5660, 17.2846, 75.8396)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45E5 #8BE545
analogous
#4F45E5 #9F45E5 #E545DB
triadic
#9F45E5 #E59F45 #45E59F
tetradic
#9F45E5 #E54F45 #8BE545 #45DBE5
square
#9F45E5 #E54F45 #8BE545 #45DBE5
split-complementary
#9F45E5 #DBE545 #45E54F
monochromatic
#60169A #821DD0 #9F45E5 #BB7BED #D6B0F4

Accessibility & contrast

On white

4.71
#9F45E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9F45E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45E5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45E5#FFFFFF#000000##FFFFFF
##9F45E51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0074E2
Tritanopia (blue-blind)
#936A90
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f45e5;
/* rgb */ color: rgb(159, 69, 229);
/* oklch */ color: oklch(58.5% 0.232 306.1);
Tailwind
colors: {
  custom: {
    50: '#c180ee',
    500: '#9f45e5',
    950: '#000000',
  },
}
SCSS
$custom: #9f45e5;
$custom-light: #c180ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45e5",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 273.75,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58544,
    "c": 0.23163,
    "h": 306.1
  },
  "luminance": 0.17284
}

Semantic roles & 50–950 ramp

primary
#9F45E5
secondary
#BFE3A3
accent
#F23688
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45E5

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

Preview Lab → · Contrast checker → · Palette generator →

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