#945AEB#945AEB

#945AEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.4% C 0.209 H 298.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#945AEB
RGBrgb(148, 90, 235)
HSLhsl(264, 78%, 64%)
HSVhsv(264, 62%, 92%)
CMYKcmyk(37%, 61.7%, 0%, 7.8%)
CIE-LABlab(51.39, 53.19, -64.84)
CIE-LCHlch(51.39, 83.86, 309.36°)
OKLaboklab(60.38% 0.0993 -0.1844)
OKLCHoklch(60.38% 0.209 298.3)
XYZxyz(30.8605, 19.6060, 80.7396)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945AEB #B1EB5A
analogous
#5A68EB #945AEB #DC5AEB
triadic
#945AEB #EB945A #5AEB94
tetradic
#945AEB #EB5A68 #B1EB5A #5AEBDC
square
#945AEB #EB5A68 #B1EB5A #5AEBDC
split-complementary
#945AEB #EBDC5A #68EB5A
monochromatic
#5516B5 #7123E4 #945AEB #B791F2 #DBC7F8

Accessibility & contrast

On white

4.27
#945AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#945AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945AEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945AEB#FFFFFF#000000##000000
##945AEB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#1579E8
Tritanopia (blue-blind)
#807A9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #945aeb;
/* rgb */ color: rgb(148, 90, 235);
/* oklch */ color: oklch(60.4% 0.209 298.3);
Tailwind
colors: {
  custom: {
    50: '#b98bf2',
    500: '#945aeb',
    950: '#000000',
  },
}
SCSS
$custom: #945aeb;
$custom-light: #b98bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#945aeb",
  "rgb": {
    "r": 148,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 264,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60382,
    "c": 0.20947,
    "h": 298.3
  },
  "luminance": 0.19606
}

Semantic roles & 50–950 ramp

primary
#945AEB
secondary
#D6EAB7
accent
#DB0B88
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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