#945FBC#945FBC

#945FBC is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.2% C 0.147 H 308.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#945FBC
RGBrgb(148, 95, 188)
HSLhsl(274, 41%, 55%)
HSVhsv(274, 49%, 74%)
CMYKcmyk(21.3%, 49.5%, 0%, 26.3%)
CIE-LABlab(49.63, 39.08, -40.86)
CIE-LCHlch(49.63, 56.54, 313.73°)
OKLaboklab(58.2% 0.0919 -0.1142)
OKLCHoklch(58.2% 0.147 308.8)
XYZxyz(25.3803, 18.1115, 49.7260)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FBC #87BC5F
analogous
#665FBC #945FBC #BC5FB5
triadic
#945FBC #BC945F #5FBC94
tetradic
#945FBC #BC665F #87BC5F #5FB5BC
square
#945FBC #BC665F #87BC5F #5FB5BC
split-complementary
#945FBC #B5BC5F #5FBC66
monochromatic
#552F71 #75419C #945FBC #B18ACE #CEB5E0

Accessibility & contrast

On white

4.54
#945FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#945FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FBC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FBC#FFFFFF#000000##000000
##945FBC1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4774BF
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#8F6F85
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #945fbc;
/* rgb */ color: rgb(148, 95, 188);
/* oklch */ color: oklch(58.2% 0.147 308.8);
Tailwind
colors: {
  custom: {
    50: '#b58ed0',
    500: '#945fbc',
    950: '#000000',
  },
}
SCSS
$custom: #945fbc;
$custom-light: #b58ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#945fbc",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 274.194,
    "s": 40.969,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58196,
    "c": 0.14663,
    "h": 308.8
  },
  "luminance": 0.18111
}

Semantic roles & 50–950 ramp

primary
#945FBC
secondary
#B9CFA8
accent
#D1578B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #945FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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