#9D45D5#9D45D5

#9D45D5 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.215 H 309.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9D45D5
RGBrgb(157, 69, 213)
HSLhsl(277, 63%, 55%)
HSVhsv(277, 68%, 84%)
CMYKcmyk(26.3%, 67.6%, 0%, 16.5%)
CIE-LABlab(47.27, 60.12, -58.96)
CIE-LCHlch(47.27, 84.21, 315.56°)
OKLaboklab(57.19% 0.136 -0.1668)
OKLCHoklch(57.19% 0.215 309.2)
XYZxyz(28.0406, 16.2289, 64.5932)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45D5 #7DD545
analogous
#5545D5 #9D45D5 #D545C5
triadic
#9D45D5 #D59D45 #45D59D
tetradic
#9D45D5 #D55545 #7DD545 #45C5D5
square
#9D45D5 #D55545 #7DD545 #45C5D5
split-complementary
#9D45D5 #C5D545 #45D555
monochromatic
#5B1D82 #7E29B4 #9D45D5 #B777E0 #D2A9EC

Accessibility & contrast

On white

4.95
#9D45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9D45D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45D5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45D5#FFFFFF#000000##FFFFFF
##9D45D51.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#2A71D2
Tritanopia (blue-blind)
#956488
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d45d5;
/* rgb */ color: rgb(157, 69, 213);
/* oklch */ color: oklch(57.2% 0.215 309.2);
Tailwind
colors: {
  custom: {
    50: '#be7fe3',
    500: '#9d45d5',
    950: '#000000',
  },
}
SCSS
$custom: #9d45d5;
$custom-light: #be7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45d5",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 276.667,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57187,
    "c": 0.2152,
    "h": 309.2
  },
  "luminance": 0.16228
}

Semantic roles & 50–950 ramp

primary
#9D45D5
secondary
#B4D99D
accent
#E64282
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #9D45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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