#945BC7#945BC7

#945BC7 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.2% C 0.166 H 306.3°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#945BC7
RGBrgb(148, 91, 199)
HSLhsl(272, 49%, 57%)
HSVhsv(272, 54%, 78%)
CMYKcmyk(25.6%, 54.3%, 0%, 22%)
CIE-LABlab(49.38, 43.86, -47.61)
CIE-LCHlch(49.38, 64.73, 312.65°)
OKLaboklab(58.2% 0.0983 -0.1339)
OKLCHoklch(58.2% 0.166 306.3)
XYZxyz(26.2605, 17.9018, 56.0937)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BC7 #8EC75B
analogous
#5E5BC7 #945BC7 #C75BC4
triadic
#945BC7 #C7945B #5BC794
tetradic
#945BC7 #C75E5B #8EC75B #5BC4C7
square
#945BC7 #C75E5B #8EC75B #5BC4C7
split-complementary
#945BC7 #C4C75B #5BC75E
monochromatic
#562B7D #763AAB #945BC7 #B289D7 #D0B6E6

Accessibility & contrast

On white

4.58
#945BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#945BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945BC7
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BC7#FFFFFF#000000##000000
##945BC71.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3773CB
Deuteranopia (green-blind)
#4A76C4
Tritanopia (blue-blind)
#8C6F88
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #945bc7;
/* rgb */ color: rgb(148, 91, 199);
/* oklch */ color: oklch(58.2% 0.166 306.3);
Tailwind
colors: {
  custom: {
    50: '#b68bd8',
    500: '#945bc7',
    950: '#000000',
  },
}
SCSS
$custom: #945bc7;
$custom-light: #b68bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#945bc7",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 271.667,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58202,
    "c": 0.16612,
    "h": 306.3
  },
  "luminance": 0.17902
}

Semantic roles & 50–950 ramp

primary
#945BC7
secondary
#BED5A9
accent
#D94F90
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #945BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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