#945CD4#945CD4

#945CD4 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.2% C 0.180 H 302.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#945CD4
RGBrgb(148, 92, 212)
HSLhsl(268, 58%, 60%)
HSVhsv(268, 57%, 83%)
CMYKcmyk(30.2%, 56.6%, 0%, 16.9%)
CIE-LABlab(50.34, 46.44, -53.52)
CIE-LCHlch(50.34, 70.86, 310.95°)
OKLaboklab(59.15% 0.0975 -0.1512)
OKLCHoklch(59.15% 0.18 302.8)
XYZxyz(27.9209, 18.7037, 64.4138)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CD4 #9CD45C
analogous
#5C60D4 #945CD4 #D05CD4
triadic
#945CD4 #D4945C #5CD494
tetradic
#945CD4 #D45C60 #9CD45C #5CD4D0
square
#945CD4 #D45C60 #9CD45C #5CD4D0
split-complementary
#945CD4 #D4D05C #60D45C
monochromatic
#572690 #7533C0 #945CD4 #B48CE1 #D4BDEE

Accessibility & contrast

On white

4.43
#945CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#945CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CD4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CD4#FFFFFF#000000##000000
##945CD41.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A77D8
Deuteranopia (green-blind)
#4077D1
Tritanopia (blue-blind)
#88748F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #945cd4;
/* rgb */ color: rgb(148, 92, 212);
/* oklch */ color: oklch(59.2% 0.180 302.8);
Tailwind
colors: {
  custom: {
    50: '#b78ce2',
    500: '#945cd4',
    950: '#000000',
  },
}
SCSS
$custom: #945cd4;
$custom-light: #b78ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#945cd4",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 268,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59153,
    "c": 0.17991,
    "h": 302.8
  },
  "luminance": 0.18704
}

Semantic roles & 50–950 ramp

primary
#945CD4
secondary
#C7DDAF
accent
#E14699
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #945CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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