#945FC7#945FC7

#945FC7 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.8% C 0.160 H 305.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#945FC7
RGBrgb(148, 95, 199)
HSLhsl(271, 48%, 58%)
HSVhsv(271, 52%, 78%)
CMYKcmyk(25.6%, 52.3%, 0%, 22%)
CIE-LABlab(50.22, 41.67, -46.27)
CIE-LCHlch(50.22, 62.26, 312.00°)
OKLaboklab(58.83% 0.093 -0.13)
OKLCHoklch(58.83% 0.16 305.6)
XYZxyz(26.6116, 18.6040, 56.2108)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FC7 #92C75F
analogous
#605FC7 #945FC7 #C75FC6
triadic
#945FC7 #C7945F #5FC794
tetradic
#945FC7 #C7605F #92C75F #5FC6C7
square
#945FC7 #C7605F #92C75F #5FC6C7
split-complementary
#945FC7 #C6C75F #5FC760
monochromatic
#572C7F #753CAC #945FC7 #B28CD7 #D1BAE7

Accessibility & contrast

On white

4.45
#945FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#945FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FC7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FC7#FFFFFF#000000##000000
##945FC71.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E76CB
Deuteranopia (green-blind)
#4E78C4
Tritanopia (blue-blind)
#8C728A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #945fc7;
/* rgb */ color: rgb(148, 95, 199);
/* oklch */ color: oklch(58.8% 0.160 305.6);
Tailwind
colors: {
  custom: {
    50: '#b68ed8',
    500: '#945fc7',
    950: '#000000',
  },
}
SCSS
$custom: #945fc7;
$custom-light: #b68ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#945fc7",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 270.577,
    "s": 48.148,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58825,
    "c": 0.15983,
    "h": 305.6
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

primary
#945FC7
secondary
#C0D6AC
accent
#D85093
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #945FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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