#945DDC#945DDC

#945DDC is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.188 H 300.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#945DDC
RGBrgb(148, 93, 220)
HSLhsl(266, 64%, 61%)
HSVhsv(266, 58%, 86%)
CMYKcmyk(32.7%, 57.7%, 0%, 13.7%)
CIE-LABlab(51.03, 47.86, -56.96)
CIE-LCHlch(51.03, 74.40, 310.04°)
OKLaboklab(59.81% 0.0963 -0.1613)
OKLCHoklch(59.81% 0.188 300.8)
XYZxyz(29.0423, 19.2918, 69.8899)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945DDC #A5DC5D
analogous
#5D66DC #945DDC #D35DDC
triadic
#945DDC #DC945D #5DDC94
tetradic
#945DDC #DC5D66 #A5DC5D #5DDCD3
square
#945DDC #DC5D66 #A5DC5D #5DDCD3
split-complementary
#945DDC #DCD35D #66DC5D
monochromatic
#57229D #732DCF #945DDC #B58FE7 #D6C2F2

Accessibility & contrast

On white

4.32
#945DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#945DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945DDC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945DDC#FFFFFF#000000##000000
##945DDC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F79E0
Deuteranopia (green-blind)
#3879D9
Tritanopia (blue-blind)
#857794
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #945ddc;
/* rgb */ color: rgb(148, 93, 220);
/* oklch */ color: oklch(59.8% 0.188 300.8);
Tailwind
colors: {
  custom: {
    50: '#b78de7',
    500: '#945ddc',
    950: '#000000',
  },
}
SCSS
$custom: #945ddc;
$custom-light: #b78de7;
$custom-dark: #000000;
JSON
{
  "hex": "#945ddc",
  "rgb": {
    "r": 148,
    "g": 93,
    "b": 220
  },
  "hsl": {
    "h": 265.984,
    "s": 64.467,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59813,
    "c": 0.18787,
    "h": 300.8
  },
  "luminance": 0.19292
}

Semantic roles & 50–950 ramp

primary
#945DDC
secondary
#CEE2B3
accent
#CC197F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945DDC

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

Preview Lab → · Contrast checker → · Palette generator →

#945DDC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva