#9D45CB#9D45CB

#9D45CB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.5% C 0.205 H 311.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9D45CB
RGBrgb(157, 69, 203)
HSLhsl(279, 56%, 53%)
HSVhsv(279, 66%, 80%)
CMYKcmyk(22.7%, 66%, 0%, 20.4%)
CIE-LABlab(46.63, 57.97, -54.25)
CIE-LCHlch(46.63, 79.40, 316.90°)
OKLaboklab(56.52% 0.1368 -0.153)
OKLCHoklch(56.52% 0.205 311.8)
XYZxyz(26.8103, 15.7368, 58.1135)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45CB #73CB45
analogous
#5A45CB #9D45CB #CB45B6
triadic
#9D45CB #CB9D45 #45CB9D
tetradic
#9D45CB #CB5A45 #73CB45 #45B6CB
square
#9D45CB #CB5A45 #73CB45 #45B6CB
split-complementary
#9D45CB #B6CB45 #45CB5A
monochromatic
#582175 #7C2EA5 #9D45CB #B675D8 #CFA5E6

Accessibility & contrast

On white

5.06
#9D45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9D45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45CB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45CB#FFFFFF#000000##FFFFFF
##9D45CB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#3870C8
Tritanopia (blue-blind)
#986082
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d45cb;
/* rgb */ color: rgb(157, 69, 203);
/* oklch */ color: oklch(56.5% 0.205 311.8);
Tailwind
colors: {
  custom: {
    50: '#be7fdb',
    500: '#9d45cb',
    950: '#000000',
  },
}
SCSS
$custom: #9d45cb;
$custom-light: #be7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45cb",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 279.403,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56518,
    "c": 0.20524,
    "h": 311.8
  },
  "luminance": 0.15736
}

Semantic roles & 50–950 ramp

primary
#9D45CB
secondary
#ADD399
accent
#E0487C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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