#9F45DC#9F45DC

#9F45DC is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.9% C 0.223 H 308.2°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#9F45DC
RGBrgb(159, 69, 220)
HSLhsl(276, 68%, 57%)
HSVhsv(276, 69%, 86%)
CMYKcmyk(27.7%, 68.6%, 0%, 13.7%)
CIE-LABlab(48.00, 62.06, -61.77)
CIE-LCHlch(48.00, 87.56, 315.14°)
OKLaboklab(57.91% 0.1378 -0.175)
OKLCHoklch(57.91% 0.223 308.2)
XYZxyz(29.3418, 16.7949, 69.3923)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45DC #82DC45
analogous
#5445DC #9F45DC #DC45CD
triadic
#9F45DC #DC9F45 #45DC9F
tetradic
#9F45DC #DC5445 #82DC45 #45CDDC
square
#9F45DC #DC5445 #82DC45 #45CDDC
split-complementary
#9F45DC #CDDC45 #45DC54
monochromatic
#5E1A8C #8124C0 #9F45DC #BA79E6 #D4ACEF

Accessibility & contrast

On white

4.82
#9F45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#9F45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45DC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45DC#FFFFFF#000000##FFFFFF
##9F45DC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#2173D9
Tritanopia (blue-blind)
#96668C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f45dc;
/* rgb */ color: rgb(159, 69, 220);
/* oklch */ color: oklch(57.9% 0.223 308.2);
Tailwind
colors: {
  custom: {
    50: '#c07fe8',
    500: '#9f45dc',
    950: '#000000',
  },
}
SCSS
$custom: #9f45dc;
$custom-light: #c07fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45dc",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 275.762,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57911,
    "c": 0.22272,
    "h": 308.2
  },
  "luminance": 0.16794
}

Semantic roles & 50–950 ramp

primary
#9F45DC
secondary
#B8DDA0
accent
#EB3D83
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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