#9D45D2#9D45D2

#9D45D2 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.212 H 309.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9D45D2
RGBrgb(157, 69, 210)
HSLhsl(277, 61%, 55%)
HSVhsv(277, 67%, 82%)
CMYKcmyk(25.2%, 67.1%, 0%, 17.6%)
CIE-LABlab(47.08, 59.47, -57.56)
CIE-LCHlch(47.08, 82.76, 315.94°)
OKLaboklab(56.98% 0.1363 -0.1627)
OKLCHoklch(56.98% 0.212 309.9)
XYZxyz(27.6633, 16.0780, 62.6064)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45D2 #7AD245
analogous
#5745D2 #9D45D2 #D245C0
triadic
#9D45D2 #D29D45 #45D29D
tetradic
#9D45D2 #D25745 #7AD245 #45C0D2
square
#9D45D2 #D25745 #7AD245 #45C0D2
split-complementary
#9D45D2 #C0D245 #45D257
monochromatic
#5A1F7E #7D2AAF #9D45D2 #B776DE #D1A8EA

Accessibility & contrast

On white

4.98
#9D45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9D45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45D2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45D2#FFFFFF#000000##FFFFFF
##9D45D21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#2F71CF
Tritanopia (blue-blind)
#966386
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d45d2;
/* rgb */ color: rgb(157, 69, 210);
/* oklch */ color: oklch(57.0% 0.212 309.9);
Tailwind
colors: {
  custom: {
    50: '#be7fe1',
    500: '#9d45d2',
    950: '#000000',
  },
}
SCSS
$custom: #9d45d2;
$custom-light: #be7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45d2",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 277.447,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.21221,
    "h": 309.9
  },
  "luminance": 0.16077
}

Semantic roles & 50–950 ramp

primary
#9D45D2
secondary
#B2D79C
accent
#E44480
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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