#945BC2#945BC2

#945BC2 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.160 H 307.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#945BC2
RGBrgb(148, 91, 194)
HSLhsl(273, 46%, 56%)
HSVhsv(273, 53%, 76%)
CMYKcmyk(23.7%, 53.1%, 0%, 23.9%)
CIE-LABlab(49.10, 42.68, -45.17)
CIE-LCHlch(49.10, 62.15, 313.38°)
OKLaboklab(57.9% 0.098 -0.1268)
OKLCHoklch(57.9% 0.16 307.7)
XYZxyz(25.6895, 17.6734, 53.0865)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BC2 #89C25B
analogous
#605BC2 #945BC2 #C25BBC
triadic
#945BC2 #C2945B #5BC294
tetradic
#945BC2 #C2605B #89C25B #5BBCC2
square
#945BC2 #C2605B #89C25B #5BBCC2
split-complementary
#945BC2 #BCC25B #5BC260
monochromatic
#552C77 #753DA3 #945BC2 #B188D3 #CEB4E3

Accessibility & contrast

On white

4.63
#945BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#945BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #945BC2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BC2#FFFFFF#000000##FFFFFF
##945BC21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C72C5
Deuteranopia (green-blind)
#4E75BF
Tritanopia (blue-blind)
#8D6D86
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #945bc2;
/* rgb */ color: rgb(148, 91, 194);
/* oklch */ color: oklch(57.9% 0.160 307.7);
Tailwind
colors: {
  custom: {
    50: '#b68bd5',
    500: '#945bc2',
    950: '#000000',
  },
}
SCSS
$custom: #945bc2;
$custom-light: #b68bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#945bc2",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 273.204,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57905,
    "c": 0.16024,
    "h": 307.7
  },
  "luminance": 0.17673
}

Semantic roles & 50–950 ramp

primary
#945BC2
secondary
#BAD2A7
accent
#D5528D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #945BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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