#945CEF#945CEF

#945CEF is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.9% C 0.211 H 297.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#945CEF
RGBrgb(148, 92, 239)
HSLhsl(263, 82%, 65%)
HSVhsv(263, 62%, 94%)
CMYKcmyk(38.1%, 61.5%, 0%, 6.3%)
CIE-LABlab(52.04, 53.15, -66.02)
CIE-LCHlch(52.04, 84.76, 308.84°)
OKLaboklab(60.94% 0.0968 -0.1879)
OKLCHoklch(60.94% 0.211 297.3)
XYZxyz(31.6159, 20.1817, 83.8744)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CEF #B7EF5C
analogous
#5C6EEF #945CEF #DD5CEF
triadic
#945CEF #EF945C #5CEF94
tetradic
#945CEF #EF5C6E #B7EF5C #5CEFDD
square
#945CEF #EF5C6E #B7EF5C #5CEFDD
split-complementary
#945CEF #EFDD5C #6EEF5C
monochromatic
#5413BE #6F24EA #945CEF #B994F4 #DDCBFA

Accessibility & contrast

On white

4.17
#945CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#945CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CEF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CEF#FFFFFF#000000##000000
##945CEF1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#0D7AEC
Tritanopia (blue-blind)
#7E7D9D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945cef;
/* rgb */ color: rgb(148, 92, 239);
/* oklch */ color: oklch(60.9% 0.211 297.3);
Tailwind
colors: {
  custom: {
    50: '#b98df5',
    500: '#945cef',
    950: '#000000',
  },
}
SCSS
$custom: #945cef;
$custom-light: #b98df5;
$custom-dark: #000000;
JSON
{
  "hex": "#945cef",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 262.857,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.21141,
    "h": 297.3
  },
  "luminance": 0.20182
}

Semantic roles & 50–950 ramp

primary
#945CEF
secondary
#D9ECBA
accent
#DF078C
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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