#9D45CF#9D45CF

#9D45CF is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.209 H 310.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9D45CF
RGBrgb(157, 69, 207)
HSLhsl(278, 59%, 54%)
HSVhsv(278, 67%, 81%)
CMYKcmyk(24.2%, 66.7%, 0%, 18.8%)
CIE-LABlab(46.88, 58.82, -56.15)
CIE-LCHlch(46.88, 81.32, 316.33°)
OKLaboklab(56.78% 0.1365 -0.1585)
OKLCHoklch(56.78% 0.209 310.7)
XYZxyz(27.2931, 15.9299, 60.6564)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45CF #77CF45
analogous
#5845CF #9D45CF #CF45BC
triadic
#9D45CF #CF9D45 #45CF9D
tetradic
#9D45CF #CF5845 #77CF45 #45BCCF
square
#9D45CF #CF5845 #77CF45 #45BCCF
split-complementary
#9D45CF #BCCF45 #45CF58
monochromatic
#59207A #7D2CAB #9D45CF #B776DC #D0A6E8

Accessibility & contrast

On white

5.02
#9D45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9D45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45CF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45CF#FFFFFF#000000##FFFFFF
##9D45CF1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#3371CC
Tritanopia (blue-blind)
#966284
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d45cf;
/* rgb */ color: rgb(157, 69, 207);
/* oklch */ color: oklch(56.8% 0.209 310.7);
Tailwind
colors: {
  custom: {
    50: '#be7fde',
    500: '#9d45cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d45cf;
$custom-light: #be7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45cf",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 278.261,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56783,
    "c": 0.20922,
    "h": 310.7
  },
  "luminance": 0.15929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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