#9D45CD#9D45CD

#9D45CD is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.207 H 311.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9D45CD
RGBrgb(157, 69, 205)
HSLhsl(279, 58%, 54%)
HSVhsv(279, 66%, 80%)
CMYKcmyk(23.4%, 66.3%, 0%, 19.6%)
CIE-LABlab(46.75, 58.39, -55.20)
CIE-LCHlch(46.75, 80.36, 316.61°)
OKLaboklab(56.65% 0.1367 -0.1558)
OKLCHoklch(56.65% 0.207 311.3)
XYZxyz(27.0501, 15.8328, 59.3768)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45CD #75CD45
analogous
#5945CD #9D45CD #CD45B9
triadic
#9D45CD #CD9D45 #45CD9D
tetradic
#9D45CD #CD5945 #75CD45 #45B9CD
square
#9D45CD #CD5945 #75CD45 #45B9CD
split-complementary
#9D45CD #B9CD45 #45CD59
monochromatic
#592077 #7C2DA8 #9D45CD #B675DA #D0A5E7

Accessibility & contrast

On white

5.04
#9D45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9D45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45CD#FFFFFF#000000##FFFFFF
##9D45CD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#3570CA
Tritanopia (blue-blind)
#976183
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d45cd;
/* rgb */ color: rgb(157, 69, 205);
/* oklch */ color: oklch(56.6% 0.207 311.3);
Tailwind
colors: {
  custom: {
    50: '#be7fdd',
    500: '#9d45cd',
    950: '#000000',
  },
}
SCSS
$custom: #9d45cd;
$custom-light: #be7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45cd",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 278.824,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5665,
    "c": 0.20723,
    "h": 311.3
  },
  "luminance": 0.15832
}

Semantic roles & 50–950 ramp

primary
#9D45CD
secondary
#AED49A
accent
#E1477D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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