#945BB2#945BB2

#945BB2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.0% C 0.142 H 312.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#945BB2
RGBrgb(148, 91, 178)
HSLhsl(279, 36%, 53%)
HSVhsv(279, 49%, 70%)
CMYKcmyk(16.9%, 48.9%, 0%, 30.2%)
CIE-LABlab(48.25, 39.03, -37.23)
CIE-LCHlch(48.25, 53.94, 316.36°)
OKLaboklab(57% 0.0964 -0.1036)
OKLCHoklch(57% 0.142 312.9)
XYZxyz(23.9883, 16.9930, 44.1271)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BB2 #79B25B
analogous
#685BB2 #945BB2 #B25BA5
triadic
#945BB2 #B2945B #5BB294
tetradic
#945BB2 #B2685B #79B25B #5BA5B2
square
#945BB2 #B2685B #79B25B #5BA5B2
split-complementary
#945BB2 #A5B25B #5BB268
monochromatic
#522F64 #74428D #945BB2 #AF85C6 #CAAED9

Accessibility & contrast

On white

4.77
#945BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#945BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #945BB2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BB2#FFFFFF#000000##FFFFFF
##945BB21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486FB5
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#91697E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #945bb2;
/* rgb */ color: rgb(148, 91, 178);
/* oklch */ color: oklch(57.0% 0.142 312.9);
Tailwind
colors: {
  custom: {
    50: '#b58bc9',
    500: '#945bb2',
    950: '#000000',
  },
}
SCSS
$custom: #945bb2;
$custom-light: #b58bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#945bb2",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 279.31,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.14154,
    "h": 312.9
  },
  "luminance": 0.16992
}

Semantic roles & 50–950 ramp

primary
#945BB2
secondary
#AFC7A2
accent
#CC5C82
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #945BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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