#945CD9#945CD9

#945CD9 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.5% C 0.186 H 301.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#945CD9
RGBrgb(148, 92, 217)
HSLhsl(267, 62%, 61%)
HSVhsv(267, 58%, 85%)
CMYKcmyk(31.8%, 57.6%, 0%, 14.9%)
CIE-LABlab(50.64, 47.66, -55.88)
CIE-LCHlch(50.64, 73.44, 310.46°)
OKLaboklab(59.47% 0.0975 -0.1581)
OKLCHoklch(59.47% 0.186 301.7)
XYZxyz(28.5614, 18.9599, 67.7871)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CD9 #A1D95C
analogous
#5C62D9 #945CD9 #D25CD9
triadic
#945CD9 #D9945C #5CD994
tetradic
#945CD9 #D95C62 #A1D95C #5CD9D2
square
#945CD9 #D95C62 #A1D95C #5CD9D2
split-complementary
#945CD9 #D9D25C #62D95C
monochromatic
#572397 #742FC9 #945CD9 #B58EE5 #D5BFF0

Accessibility & contrast

On white

4.38
#945CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#945CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CD9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CD9#FFFFFF#000000##000000
##945CD91.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DD
Deuteranopia (green-blind)
#3A78D6
Tritanopia (blue-blind)
#867592
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #945cd9;
/* rgb */ color: rgb(148, 92, 217);
/* oklch */ color: oklch(59.5% 0.186 301.7);
Tailwind
colors: {
  custom: {
    50: '#b78ce5',
    500: '#945cd9',
    950: '#000000',
  },
}
SCSS
$custom: #945cd9;
$custom-light: #b78ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#945cd9",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 266.88,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59471,
    "c": 0.18578,
    "h": 301.7
  },
  "luminance": 0.1896
}

Semantic roles & 50–950 ramp

primary
#945CD9
secondary
#CBE0B1
accent
#CA1C7C
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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