#956CD7#956CD7

#956CD7 is a mid, vivid violet. Relative luminance 0.220; OKLCH L 62.0% C 0.159 H 299.4°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#956CD7
RGBrgb(149, 108, 215)
HSLhsl(263, 57%, 63%)
HSVhsv(263, 50%, 84%)
CMYKcmyk(30.7%, 49.8%, 0%, 15.7%)
CIE-LABlab(54.05, 38.57, -49.29)
CIE-LCHlch(54.05, 62.59, 308.04°)
OKLaboklab(61.98% 0.0783 -0.1388)
OKLCHoklch(61.98% 0.159 299.4)
XYZxyz(30.0198, 22.0208, 66.9457)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#956CD7 #AED76C
analogous
#6C78D7 #956CD7 #CA6CD7
triadic
#956CD7 #D7956C #6CD795
tetradic
#956CD7 #D76C78 #AED76C #6CD7CA
square
#956CD7 #D76C78 #AED76C #6CD7CA
split-complementary
#956CD7 #D7CA6C #78D76C
monochromatic
#572B9E #723CCA #956CD7 #B89CE4 #DACCF1

Accessibility & contrast

On white

3.89
#956CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#956CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #956CD7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##956CD7#FFFFFF#000000##000000
##956CD71.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4881DB
Deuteranopia (green-blind)
#5280D4
Tritanopia (blue-blind)
#888097
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #956cd7;
/* rgb */ color: rgb(149, 108, 215);
/* oklch */ color: oklch(62.0% 0.159 299.4);
Tailwind
colors: {
  custom: {
    50: '#b797e4',
    500: '#956cd7',
    950: '#000000',
  },
}
SCSS
$custom: #956cd7;
$custom-light: #b797e4;
$custom-dark: #000000;
JSON
{
  "hex": "#956cd7",
  "rgb": {
    "r": 149,
    "g": 108,
    "b": 215
  },
  "hsl": {
    "h": 262.991,
    "s": 57.219,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61976,
    "c": 0.15938,
    "h": 299.4
  },
  "luminance": 0.22021
}

Semantic roles & 50–950 ramp

primary
#956CD7
secondary
#D4E2BC
accent
#C52186
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120D15
muted
#817E84

Preview Lab

Preview with #956CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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