#945CD7#945CD7

#945CD7 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.3% C 0.183 H 302.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#945CD7
RGBrgb(148, 92, 215)
HSLhsl(267, 61%, 60%)
HSVhsv(267, 57%, 84%)
CMYKcmyk(31.2%, 57.2%, 0%, 15.7%)
CIE-LABlab(50.52, 47.17, -54.94)
CIE-LCHlch(50.52, 72.41, 310.65°)
OKLaboklab(59.34% 0.0975 -0.1554)
OKLCHoklch(59.34% 0.183 302.1)
XYZxyz(28.3028, 18.8564, 66.4254)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CD7 #9FD75C
analogous
#5C61D7 #945CD7 #D15CD7
triadic
#945CD7 #D7945C #5CD794
tetradic
#945CD7 #D75C61 #9FD75C #5CD7D1
square
#945CD7 #D75C61 #9FD75C #5CD7D1
split-complementary
#945CD7 #D7D15C #61D75C
monochromatic
#572494 #7430C5 #945CD7 #B48DE3 #D5BEEF

Accessibility & contrast

On white

4.40
#945CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#945CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CD7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CD7#FFFFFF#000000##000000
##945CD71.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2577DB
Deuteranopia (green-blind)
#3D78D4
Tritanopia (blue-blind)
#877591
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #945cd7;
/* rgb */ color: rgb(148, 92, 215);
/* oklch */ color: oklch(59.3% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#b78ce4',
    500: '#945cd7',
    950: '#000000',
  },
}
SCSS
$custom: #945cd7;
$custom-light: #b78ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#945cd7",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 267.317,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59343,
    "c": 0.18344,
    "h": 302.1
  },
  "luminance": 0.18856
}

Semantic roles & 50–950 ramp

primary
#945CD7
secondary
#CADFB0
accent
#C81D7A
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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