#945CD2#945CD2

#945CD2 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.178 H 303.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#945CD2
RGBrgb(148, 92, 210)
HSLhsl(268, 57%, 59%)
HSVhsv(268, 56%, 82%)
CMYKcmyk(29.5%, 56.2%, 0%, 17.6%)
CIE-LABlab(50.22, 45.95, -52.57)
CIE-LCHlch(50.22, 69.82, 311.16°)
OKLaboklab(59.03% 0.0974 -0.1484)
OKLCHoklch(59.03% 0.178 303.3)
XYZxyz(27.6701, 18.6034, 63.0933)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CD2 #9AD25C
analogous
#5C5FD2 #945CD2 #CF5CD2
triadic
#945CD2 #D2945C #5CD294
tetradic
#945CD2 #D25C5F #9AD25C #5CD2CF
square
#945CD2 #D25C5F #9AD25C #5CD2CF
split-complementary
#945CD2 #D2CF5C #5FD25C
monochromatic
#57278D #7534BD #945CD2 #B38CDF #D3BCEC

Accessibility & contrast

On white

4.45
#945CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#945CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CD2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CD2#FFFFFF#000000##000000
##945CD21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D6
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#89738E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #945cd2;
/* rgb */ color: rgb(148, 92, 210);
/* oklch */ color: oklch(59.0% 0.178 303.3);
Tailwind
colors: {
  custom: {
    50: '#b78ce0',
    500: '#945cd2',
    950: '#000000',
  },
}
SCSS
$custom: #945cd2;
$custom-light: #b78ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#945cd2",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 268.475,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59027,
    "c": 0.17755,
    "h": 303.3
  },
  "luminance": 0.18603
}

Semantic roles & 50–950 ramp

primary
#945CD2
secondary
#C6DCAE
accent
#E04898
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #945CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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