#945AE1#945AE1

#945AE1 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.7% C 0.198 H 300.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#945AE1
RGBrgb(148, 90, 225)
HSLhsl(266, 69%, 62%)
HSVhsv(266, 60%, 88%)
CMYKcmyk(34.2%, 60%, 0%, 11.8%)
CIE-LABlab(50.74, 50.69, -60.25)
CIE-LCHlch(50.74, 78.74, 310.08°)
OKLaboklab(59.7% 0.0998 -0.171)
OKLCHoklch(59.7% 0.198 300.3)
XYZxyz(29.4562, 19.0443, 73.3436)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945AE1 #A7E15A
analogous
#5A64E1 #945AE1 #D85AE1
triadic
#945AE1 #E1945A #5AE194
tetradic
#945AE1 #E15A64 #A7E15A #5AE1D8
square
#945AE1 #E15A64 #A7E15A #5AE1D8
split-complementary
#945AE1 #E1D85A #64E15A
monochromatic
#571EA3 #7327D7 #945AE1 #B68EEA #D7C2F4

Accessibility & contrast

On white

4.37
#945AE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#945AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945AE1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945AE1#FFFFFF#000000##000000
##945AE11.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E5
Deuteranopia (green-blind)
#2C78DE
Tritanopia (blue-blind)
#847795
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #945ae1;
/* rgb */ color: rgb(148, 90, 225);
/* oklch */ color: oklch(59.7% 0.198 300.3);
Tailwind
colors: {
  custom: {
    50: '#b88beb',
    500: '#945ae1',
    950: '#000000',
  },
}
SCSS
$custom: #945ae1;
$custom-light: #b88beb;
$custom-dark: #000000;
JSON
{
  "hex": "#945ae1",
  "rgb": {
    "r": 148,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 265.778,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59702,
    "c": 0.19796,
    "h": 300.3
  },
  "luminance": 0.19044
}

Semantic roles & 50–950 ramp

primary
#945AE1
secondary
#CFE4B2
accent
#D11480
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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