#9D45DC#9D45DC

#9D45DC is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.222 H 307.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9D45DC
RGBrgb(157, 69, 220)
HSLhsl(275, 68%, 57%)
HSVhsv(275, 69%, 86%)
CMYKcmyk(28.6%, 68.6%, 0%, 13.7%)
CIE-LABlab(47.74, 61.66, -62.20)
CIE-LCHlch(47.74, 87.58, 314.75°)
OKLaboklab(57.67% 0.1352 -0.1763)
OKLCHoklch(57.67% 0.222 307.5)
XYZxyz(28.9483, 16.5920, 69.3738)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45DC #84DC45
analogous
#5245DC #9D45DC #DC45D0
triadic
#9D45DC #DC9D45 #45DC9D
tetradic
#9D45DC #DC5245 #84DC45 #45D0DC
square
#9D45DC #DC5245 #84DC45 #45D0DC
split-complementary
#9D45DC #D0DC45 #45DC52
monochromatic
#5D1A8C #7F24C0 #9D45DC #B879E6 #D3ACEF

Accessibility & contrast

On white

4.86
#9D45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9D45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45DC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45DC#FFFFFF#000000##FFFFFF
##9D45DC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#1C72D9
Tritanopia (blue-blind)
#93678C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d45dc;
/* rgb */ color: rgb(157, 69, 220);
/* oklch */ color: oklch(57.7% 0.222 307.5);
Tailwind
colors: {
  custom: {
    50: '#bf7fe8',
    500: '#9d45dc',
    950: '#000000',
  },
}
SCSS
$custom: #9d45dc;
$custom-light: #bf7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45dc",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 274.967,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57671,
    "c": 0.22218,
    "h": 307.5
  },
  "luminance": 0.16592
}

Semantic roles & 50–950 ramp

primary
#9D45DC
secondary
#B9DDA0
accent
#EB3D85
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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