#945FE1#945FE1

#945FE1 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.4% C 0.191 H 299.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#945FE1
RGBrgb(148, 95, 225)
HSLhsl(264, 68%, 63%)
HSVhsv(264, 58%, 88%)
CMYKcmyk(34.2%, 57.8%, 0%, 11.8%)
CIE-LABlab(51.74, 48.03, -58.64)
CIE-LCHlch(51.74, 75.80, 309.32°)
OKLaboklab(60.44% 0.0939 -0.1662)
OKLCHoklch(60.44% 0.191 299.4)
XYZxyz(29.8922, 19.9163, 73.4889)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FE1 #ACE15F
analogous
#5F6BE1 #945FE1 #D55FE1
triadic
#945FE1 #E1945F #5FE194
tetradic
#945FE1 #E15F6B #ACE15F #5FE1D5
square
#945FE1 #E15F6B #ACE15F #5FE1D5
split-complementary
#945FE1 #E1D55F #6BE15F
monochromatic
#561FA6 #722BD7 #945FE1 #B693EB #D9C6F4

Accessibility & contrast

On white

4.21
#945FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##945FE1#FFFFFF#000000##000000
##945FE11.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7BE5
Deuteranopia (green-blind)
#357ADE
Tritanopia (blue-blind)
#837A97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #945fe1;
/* rgb */ color: rgb(148, 95, 225);
/* oklch */ color: oklch(60.4% 0.191 299.4);
Tailwind
colors: {
  custom: {
    50: '#b88eeb',
    500: '#945fe1',
    950: '#000000',
  },
}
SCSS
$custom: #945fe1;
$custom-light: #b88eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#945fe1",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 225
  },
  "hsl": {
    "h": 264.462,
    "s": 68.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60435,
    "c": 0.1909,
    "h": 299.4
  },
  "luminance": 0.19917
}

Semantic roles & 50–950 ramp

primary
#945FE1
secondary
#D2E5B6
accent
#D01584
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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