#9D45D8#9D45D8

#9D45D8 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.4% C 0.218 H 308.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9D45D8
RGBrgb(157, 69, 216)
HSLhsl(276, 65%, 56%)
HSVhsv(276, 68%, 85%)
CMYKcmyk(27.3%, 68.1%, 0%, 15.3%)
CIE-LABlab(47.47, 60.78, -60.35)
CIE-LCHlch(47.47, 85.65, 315.20°)
OKLaboklab(57.39% 0.1357 -0.1709)
OKLCHoklch(57.39% 0.218 308.4)
XYZxyz(28.4249, 16.3827, 66.6172)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45D8 #80D845
analogous
#5345D8 #9D45D8 #D845CA
triadic
#9D45D8 #D89D45 #45D89D
tetradic
#9D45D8 #D85345 #80D845 #45CAD8
square
#9D45D8 #D85345 #80D845 #45CAD8
split-complementary
#9D45D8 #CAD845 #45D853
monochromatic
#5C1C86 #7E27B9 #9D45D8 #B878E3 #D2AAED

Accessibility & contrast

On white

4.91
#9D45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9D45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45D8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45D8#FFFFFF#000000##FFFFFF
##9D45D81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#2572D5
Tritanopia (blue-blind)
#946589
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d45d8;
/* rgb */ color: rgb(157, 69, 216);
/* oklch */ color: oklch(57.4% 0.218 308.4);
Tailwind
colors: {
  custom: {
    50: '#be7fe5',
    500: '#9d45d8',
    950: '#000000',
  },
}
SCSS
$custom: #9d45d8;
$custom-light: #be7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45d8",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 275.918,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57393,
    "c": 0.21819,
    "h": 308.4
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#9D45D8
secondary
#B6DB9E
accent
#E84083
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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