#945FE4#945FE4

#945FE4 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.6% C 0.194 H 298.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#945FE4
RGBrgb(148, 95, 228)
HSLhsl(264, 71%, 63%)
HSVhsv(264, 58%, 89%)
CMYKcmyk(35.1%, 58.3%, 0%, 10.6%)
CIE-LABlab(51.93, 48.78, -60.03)
CIE-LCHlch(51.93, 77.35, 309.10°)
OKLaboklab(60.63% 0.0938 -0.1703)
OKLCHoklch(60.63% 0.194 298.8)
XYZxyz(30.3051, 20.0814, 75.6632)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FE4 #AFE45F
analogous
#5F6CE4 #945FE4 #D75FE4
triadic
#945FE4 #E4945F #5FE494
tetradic
#945FE4 #E45F6C #AFE45F #5FE4D7
square
#945FE4 #E45F6C #AFE45F #5FE4D7
split-complementary
#945FE4 #E4D75F #6CE45F
monochromatic
#561DAC #712BDB #945FE4 #B793ED #DAC8F6

Accessibility & contrast

On white

4.19
#945FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#945FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FE4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FE4#FFFFFF#000000##000000
##945FE41.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#137CE8
Deuteranopia (green-blind)
#317BE1
Tritanopia (blue-blind)
#827B99
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945fe4;
/* rgb */ color: rgb(148, 95, 228);
/* oklch */ color: oklch(60.6% 0.194 298.8);
Tailwind
colors: {
  custom: {
    50: '#b88eed',
    500: '#945fe4',
    950: '#000000',
  },
}
SCSS
$custom: #945fe4;
$custom-light: #b88eed;
$custom-dark: #000000;
JSON
{
  "hex": "#945fe4",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 228
  },
  "hsl": {
    "h": 263.91,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60632,
    "c": 0.19445,
    "h": 298.8
  },
  "luminance": 0.20082
}

Semantic roles & 50–950 ramp

primary
#945FE4
secondary
#D4E7B8
accent
#D31286
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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