#945ECF#945ECF

#945ECF is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.1% C 0.171 H 303.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#945ECF
RGBrgb(148, 94, 207)
HSLhsl(269, 54%, 59%)
HSVhsv(269, 55%, 81%)
CMYKcmyk(28.5%, 54.6%, 0%, 18.8%)
CIE-LABlab(50.46, 44.14, -50.47)
CIE-LCHlch(50.46, 67.05, 311.17°)
OKLaboklab(59.15% 0.0948 -0.1423)
OKLCHoklch(59.15% 0.171 303.7)
XYZxyz(27.4754, 18.8064, 61.2019)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945ECF #99CF5E
analogous
#5E61CF #945ECF #CD5ECF
triadic
#945ECF #CF945E #5ECF94
tetradic
#945ECF #CF5E61 #99CF5E #5ECFCD
square
#945ECF #CF5E61 #99CF5E #5ECFCD
split-complementary
#945ECF #CFCD5E #61CF5E
monochromatic
#57298A #7537B9 #945ECF #B38DDD #D3BCEB

Accessibility & contrast

On white

4.41
#945ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#945ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945ECF
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945ECF#FFFFFF#000000##000000
##945ECF1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3577D3
Deuteranopia (green-blind)
#4778CC
Tritanopia (blue-blind)
#89748D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #945ecf;
/* rgb */ color: rgb(148, 94, 207);
/* oklch */ color: oklch(59.1% 0.171 303.7);
Tailwind
colors: {
  custom: {
    50: '#b68dde',
    500: '#945ecf',
    950: '#000000',
  },
}
SCSS
$custom: #945ecf;
$custom-light: #b68dde;
$custom-dark: #000000;
JSON
{
  "hex": "#945ecf",
  "rgb": {
    "r": 148,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 268.673,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59147,
    "c": 0.17096,
    "h": 303.7
  },
  "luminance": 0.18806
}

Semantic roles & 50–950 ramp

primary
#945ECF
secondary
#C5DBAE
accent
#DD4A97
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #945ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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