#9D45D4#9D45D4

#9D45D4 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.214 H 309.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9D45D4
RGBrgb(157, 69, 212)
HSLhsl(277, 62%, 55%)
HSVhsv(277, 67%, 83%)
CMYKcmyk(25.9%, 67.5%, 0%, 16.9%)
CIE-LABlab(47.21, 59.91, -58.49)
CIE-LCHlch(47.21, 83.73, 315.68°)
OKLaboklab(57.12% 0.1361 -0.1654)
OKLCHoklch(57.12% 0.214 309.4)
XYZxyz(27.9141, 16.1783, 63.9268)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45D4 #7CD445
analogous
#5645D4 #9D45D4 #D445C3
triadic
#9D45D4 #D49D45 #45D49D
tetradic
#9D45D4 #D45645 #7CD445 #45C3D4
square
#9D45D4 #D45645 #7CD445 #45C3D4
split-complementary
#9D45D4 #C3D445 #45D456
monochromatic
#5B1E81 #7E29B3 #9D45D4 #B777DF #D1A8EB

Accessibility & contrast

On white

4.96
#9D45D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9D45D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45D4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45D4#FFFFFF#000000##FFFFFF
##9D45D41.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#2C71D1
Tritanopia (blue-blind)
#956487
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d45d4;
/* rgb */ color: rgb(157, 69, 212);
/* oklch */ color: oklch(57.1% 0.214 309.4);
Tailwind
colors: {
  custom: {
    50: '#be7fe2',
    500: '#9d45d4',
    950: '#000000',
  },
}
SCSS
$custom: #9d45d4;
$custom-light: #be7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45d4",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 276.923,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57119,
    "c": 0.2142,
    "h": 309.4
  },
  "luminance": 0.16178
}

Semantic roles & 50–950 ramp

primary
#9D45D4
secondary
#B3D89C
accent
#E64281
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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