#945EF3#945EF3

#945EF3 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.5% C 0.213 H 296.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#945EF3
RGBrgb(148, 94, 243)
HSLhsl(262, 86%, 66%)
HSVhsv(262, 61%, 95%)
CMYKcmyk(39.1%, 61.3%, 0%, 4.7%)
CIE-LABlab(52.70, 53.12, -67.20)
CIE-LCHlch(52.70, 85.66, 308.33°)
OKLaboklab(61.5% 0.0944 -0.1914)
OKLCHoklch(61.5% 0.213 296.2)
XYZxyz(32.3889, 20.7718, 87.0795)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945EF3 #BDF35E
analogous
#5E72F3 #945EF3 #DE5EF3
triadic
#945EF3 #F3945E #5EF394
tetradic
#945EF3 #F35E72 #BDF35E #5EF3DE
square
#945EF3 #F35E72 #BDF35E #5EF3DE
split-complementary
#945EF3 #F3DE5E #72F35E
monochromatic
#520FC8 #6E25EF #945EF3 #BA97F7 #E0D0FB

Accessibility & contrast

On white

4.07
#945EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#945EF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945EF3
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945EF3#FFFFFF#000000##000000
##945EF31.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF8
Deuteranopia (green-blind)
#037CF0
Tritanopia (blue-blind)
#7C7FA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #945ef3;
/* rgb */ color: rgb(148, 94, 243);
/* oklch */ color: oklch(61.5% 0.213 296.2);
Tailwind
colors: {
  custom: {
    50: '#b98ef8',
    500: '#945ef3',
    950: '#000000',
  },
}
SCSS
$custom: #945ef3;
$custom-light: #b98ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#945ef3",
  "rgb": {
    "r": 148,
    "g": 94,
    "b": 243
  },
  "hsl": {
    "h": 261.745,
    "s": 86.127,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61502,
    "c": 0.21339,
    "h": 296.2
  },
  "luminance": 0.20772
}

Semantic roles & 50–950 ramp

primary
#945EF3
secondary
#DDEFBE
accent
#E30392
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #945EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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