#945EF4#945EF4

#945EF4 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.215 H 296.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#945EF4
RGBrgb(148, 94, 244)
HSLhsl(262, 87%, 66%)
HSVhsv(262, 61%, 96%)
CMYKcmyk(39.3%, 61.5%, 0%, 4.3%)
CIE-LABlab(52.77, 53.38, -67.65)
CIE-LCHlch(52.77, 86.17, 308.28°)
OKLaboklab(61.57% 0.0943 -0.1927)
OKLCHoklch(61.57% 0.215 296.1)
XYZxyz(32.5403, 20.8323, 87.8770)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945EF4 #BEF45E
analogous
#5E73F4 #945EF4 #DF5EF4
triadic
#945EF4 #F4945E #5EF494
tetradic
#945EF4 #F45E73 #BEF45E #5EF4DF
square
#945EF4 #F45E73 #BEF45E #5EF4DF
split-complementary
#945EF4 #F4DF5E #73F45E
monochromatic
#510ECA #6E25F0 #945EF4 #BA97F8 #E0D1FC

Accessibility & contrast

On white

4.06
#945EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#945EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945EF4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945EF4#FFFFFF#000000##000000
##945EF41.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF9
Deuteranopia (green-blind)
#007CF1
Tritanopia (blue-blind)
#7C80A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #945ef4;
/* rgb */ color: rgb(148, 94, 244);
/* oklch */ color: oklch(61.6% 0.215 296.1);
Tailwind
colors: {
  custom: {
    50: '#b98ef9',
    500: '#945ef4',
    950: '#000000',
  },
}
SCSS
$custom: #945ef4;
$custom-light: #b98ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#945ef4",
  "rgb": {
    "r": 148,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 261.6,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61571,
    "c": 0.21455,
    "h": 296.1
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#945EF4
secondary
#DEEFBE
accent
#E40292
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #945EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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