#9F45DA#9F45DA

#9F45DA is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.8% C 0.221 H 308.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9F45DA
RGBrgb(159, 69, 218)
HSLhsl(276, 67%, 56%)
HSVhsv(276, 68%, 85%)
CMYKcmyk(27.1%, 68.3%, 0%, 14.5%)
CIE-LABlab(47.87, 61.62, -60.84)
CIE-LCHlch(47.87, 86.60, 315.36°)
OKLaboklab(57.77% 0.138 -0.1723)
OKLCHoklch(57.77% 0.221 308.7)
XYZxyz(29.0785, 16.6896, 68.0056)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45DA #80DA45
analogous
#5545DA #9F45DA #DA45CA
triadic
#9F45DA #DA9F45 #45DA9F
tetradic
#9F45DA #DA5545 #80DA45 #45CADA
square
#9F45DA #DA5545 #80DA45 #45CADA
split-complementary
#9F45DA #CADA45 #45DA55
monochromatic
#5E1B89 #8125BC #9F45DA #B978E4 #D4ABEE

Accessibility & contrast

On white

4.84
#9F45DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9F45DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45DA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45DA#FFFFFF#000000##FFFFFF
##9F45DA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#2573D7
Tritanopia (blue-blind)
#96668A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f45da;
/* rgb */ color: rgb(159, 69, 218);
/* oklch */ color: oklch(57.8% 0.221 308.7);
Tailwind
colors: {
  custom: {
    50: '#c07fe6',
    500: '#9f45da',
    950: '#000000',
  },
}
SCSS
$custom: #9f45da;
$custom-light: #c07fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45da",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 218
  },
  "hsl": {
    "h": 276.242,
    "s": 66.816,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57772,
    "c": 0.22074,
    "h": 308.7
  },
  "luminance": 0.16689
}

Semantic roles & 50–950 ramp

primary
#9F45DA
secondary
#B7DC9F
accent
#EA3E82
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45DA

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

Preview Lab → · Contrast checker → · Palette generator →

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