#9D45DB#9D45DB

#9D45DB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.221 H 307.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9D45DB
RGBrgb(157, 69, 219)
HSLhsl(275, 68%, 56%)
HSVhsv(275, 68%, 86%)
CMYKcmyk(28.3%, 68.5%, 0%, 14.1%)
CIE-LABlab(47.67, 61.44, -61.74)
CIE-LCHlch(47.67, 87.10, 314.86°)
OKLaboklab(57.6% 0.1353 -0.175)
OKLCHoklch(57.6% 0.221 307.7)
XYZxyz(28.8163, 16.5392, 68.6784)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45DB #83DB45
analogous
#5245DB #9D45DB #DB45CE
triadic
#9D45DB #DB9D45 #45DB9D
tetradic
#9D45DB #DB5245 #83DB45 #45CEDB
square
#9D45DB #DB5245 #83DB45 #45CEDB
split-complementary
#9D45DB #CEDB45 #45DB52
monochromatic
#5C1B8B #7F25BE #9D45DB #B878E5 #D3ACEF

Accessibility & contrast

On white

4.87
#9D45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9D45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45DB#FFFFFF#000000##FFFFFF
##9D45DB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#1F72D8
Tritanopia (blue-blind)
#93668B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d45db;
/* rgb */ color: rgb(157, 69, 219);
/* oklch */ color: oklch(57.6% 0.221 307.7);
Tailwind
colors: {
  custom: {
    50: '#bf7fe7',
    500: '#9d45db',
    950: '#000000',
  },
}
SCSS
$custom: #9d45db;
$custom-light: #bf7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45db",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 275.2,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57601,
    "c": 0.22119,
    "h": 307.7
  },
  "luminance": 0.16539
}

Semantic roles & 50–950 ramp

primary
#9D45DB
secondary
#B9DD9F
accent
#EA3D85
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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