#945CEA#945CEA

#945CEA is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.206 H 298.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#945CEA
RGBrgb(148, 92, 234)
HSLhsl(264, 77%, 64%)
HSVhsv(264, 61%, 92%)
CMYKcmyk(36.8%, 60.7%, 0%, 8.2%)
CIE-LABlab(51.71, 51.89, -63.75)
CIE-LCHlch(51.71, 82.20, 309.14°)
OKLaboklab(60.6% 0.0971 -0.1813)
OKLCHoklch(60.6% 0.206 298.2)
XYZxyz(30.8874, 19.8903, 80.0378)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CEA #B2EA5C
analogous
#5C6BEA #945CEA #DB5CEA
triadic
#945CEA #EA945C #5CEA94
tetradic
#945CEA #EA5C6B #B2EA5C #5CEADB
square
#945CEA #EA5C6B #B2EA5C #5CEADB
split-complementary
#945CEA #EADB5C #6BEA5C
monochromatic
#5517B4 #7026E3 #945CEA #B892F1 #DBC8F8

Accessibility & contrast

On white

4.22
#945CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#945CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CEA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CEA#FFFFFF#000000##000000
##945CEA1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#1E7AE7
Tritanopia (blue-blind)
#807B9A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #945cea;
/* rgb */ color: rgb(148, 92, 234);
/* oklch */ color: oklch(60.6% 0.206 298.2);
Tailwind
colors: {
  custom: {
    50: '#b98df2',
    500: '#945cea',
    950: '#000000',
  },
}
SCSS
$custom: #945cea;
$custom-light: #b98df2;
$custom-dark: #000000;
JSON
{
  "hex": "#945cea",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 263.662,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60596,
    "c": 0.20563,
    "h": 298.2
  },
  "luminance": 0.19891
}

Semantic roles & 50–950 ramp

primary
#945CEA
secondary
#D6EAB8
accent
#D90C88
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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