#945BEB#945BEB

#945BEB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.5% C 0.208 H 298.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#945BEB
RGBrgb(148, 91, 235)
HSLhsl(264, 78%, 64%)
HSVhsv(264, 61%, 92%)
CMYKcmyk(37%, 61.3%, 0%, 7.8%)
CIE-LABlab(51.58, 52.67, -64.52)
CIE-LCHlch(51.58, 83.29, 309.22°)
OKLaboklab(60.52% 0.0982 -0.1835)
OKLCHoklch(60.52% 0.208 298.1)
XYZxyz(30.9455, 19.7758, 80.7679)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BEB #B2EB5B
analogous
#5B6AEB #945BEB #DC5BEB
triadic
#945BEB #EB945B #5BEB94
tetradic
#945BEB #EB5B6A #B2EB5B #5BEBDC
square
#945BEB #EB5B6A #B2EB5B #5BEBDC
split-complementary
#945BEB #EBDC5B #6AEB5B
monochromatic
#5516B5 #7024E4 #945BEB #B892F2 #DBC8F8

Accessibility & contrast

On white

4.24
#945BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#945BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945BEB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BEB#FFFFFF#000000##000000
##945BEB1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#1979E8
Tritanopia (blue-blind)
#807B9B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #945beb;
/* rgb */ color: rgb(148, 91, 235);
/* oklch */ color: oklch(60.5% 0.208 298.1);
Tailwind
colors: {
  custom: {
    50: '#b98cf2',
    500: '#945beb',
    950: '#000000',
  },
}
SCSS
$custom: #945beb;
$custom-light: #b98cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#945beb",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 263.75,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60523,
    "c": 0.20813,
    "h": 298.1
  },
  "luminance": 0.19776
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #945BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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