#9F45CD#9F45CD

#9F45CD is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.9% C 0.208 H 312.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9F45CD
RGBrgb(159, 69, 205)
HSLhsl(280, 58%, 54%)
HSVhsv(280, 66%, 80%)
CMYKcmyk(22.4%, 66.3%, 0%, 19.6%)
CIE-LABlab(47.02, 58.83, -54.76)
CIE-LCHlch(47.02, 80.37, 317.05°)
OKLaboklab(56.9% 0.1392 -0.1544)
OKLCHoklch(56.9% 0.208 312)
XYZxyz(27.4436, 16.0357, 59.3953)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45CD #73CD45
analogous
#5B45CD #9F45CD #CD45B7
triadic
#9F45CD #CD9F45 #45CD9F
tetradic
#9F45CD #CD5B45 #73CD45 #45B7CD
square
#9F45CD #CD5B45 #73CD45 #45B7CD
split-complementary
#9F45CD #B7CD45 #45CD5B
monochromatic
#5A2077 #7E2DA8 #9F45CD #B875DA #D1A5E7

Accessibility & contrast

On white

4.99
#9F45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9F45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45CD#FFFFFF#000000##FFFFFF
##9F45CD1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#3871CA
Tritanopia (blue-blind)
#9A6183
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f45cd;
/* rgb */ color: rgb(159, 69, 205);
/* oklch */ color: oklch(56.9% 0.208 312.0);
Tailwind
colors: {
  custom: {
    50: '#bf7fdd',
    500: '#9f45cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f45cd;
$custom-light: #bf7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45cd",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 279.706,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56898,
    "c": 0.20789,
    "h": 312
  },
  "luminance": 0.16035
}

Semantic roles & 50–950 ramp

primary
#9F45CD
secondary
#ADD49A
accent
#E1477B
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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