#9D45CE#9D45CE

#9D45CE is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.208 H 311.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9D45CE
RGBrgb(157, 69, 206)
HSLhsl(279, 58%, 54%)
HSVhsv(279, 67%, 81%)
CMYKcmyk(23.8%, 66.5%, 0%, 19.2%)
CIE-LABlab(46.82, 58.61, -55.67)
CIE-LCHlch(46.82, 80.84, 316.47°)
OKLaboklab(56.72% 0.1366 -0.1572)
OKLCHoklch(56.72% 0.208 311)
XYZxyz(27.1712, 15.8812, 60.0146)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45CE #76CE45
analogous
#5945CE #9D45CE #CE45BB
triadic
#9D45CE #CE9D45 #45CE9D
tetradic
#9D45CE #CE5945 #76CE45 #45BBCE
square
#9D45CE #CE5945 #76CE45 #45BBCE
split-complementary
#9D45CE #BBCE45 #45CE59
monochromatic
#592079 #7D2DA9 #9D45CE #B775DB #D0A6E8

Accessibility & contrast

On white

5.03
#9D45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9D45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45CE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45CE#FFFFFF#000000##FFFFFF
##9D45CE1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#3471CB
Tritanopia (blue-blind)
#976184
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d45ce;
/* rgb */ color: rgb(157, 69, 206);
/* oklch */ color: oklch(56.7% 0.208 311.0);
Tailwind
colors: {
  custom: {
    50: '#be7fde',
    500: '#9d45ce',
    950: '#000000',
  },
}
SCSS
$custom: #9d45ce;
$custom-light: #be7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45ce",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 278.54,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56716,
    "c": 0.20822,
    "h": 311
  },
  "luminance": 0.15881
}

Semantic roles & 50–950 ramp

primary
#9D45CE
secondary
#AFD59A
accent
#E2467E
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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