#945BE8#945BE8

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

Color values

HEX#945BE8
RGBrgb(148, 91, 232)
HSLhsl(264, 75%, 63%)
HSVhsv(264, 61%, 91%)
CMYKcmyk(36.2%, 60.8%, 0%, 9%)
CIE-LABlab(51.39, 51.91, -63.16)
CIE-LCHlch(51.39, 81.75, 309.42°)
OKLaboklab(60.32% 0.0983 -0.1795)
OKLCHoklch(60.32% 0.205 298.7)
XYZxyz(30.5157, 19.6039, 78.5045)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BE8 #AFE85B
analogous
#5B68E8 #945BE8 #DA5BE8
triadic
#945BE8 #E8945B #5BE894
tetradic
#945BE8 #E85B68 #AFE85B #5BE8DA
square
#945BE8 #E85B68 #AFE85B #5BE8DA
split-complementary
#945BE8 #E8DA5B #68E85B
monochromatic
#5619B0 #7125E0 #945BE8 #B791F0 #DAC6F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##945BE8#FFFFFF#000000##000000
##945BE81.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)
#007AEC
Deuteranopia (green-blind)
#2179E5
Tritanopia (blue-blind)
#817A99
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #945be8;
/* rgb */ color: rgb(148, 91, 232);
/* oklch */ color: oklch(60.3% 0.205 298.7);
Tailwind
colors: {
  custom: {
    50: '#b88cf0',
    500: '#945be8',
    950: '#000000',
  },
}
SCSS
$custom: #945be8;
$custom-light: #b88cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#945be8",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 232
  },
  "hsl": {
    "h": 264.255,
    "s": 75.401,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60317,
    "c": 0.20468,
    "h": 298.7
  },
  "luminance": 0.19604
}

Semantic roles & 50–950 ramp

primary
#945BE8
secondary
#D4E9B6
accent
#D80E86
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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