#945BEF#945BEF

#945BEF is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.8% C 0.213 H 297.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#945BEF
RGBrgb(148, 91, 239)
HSLhsl(263, 82%, 65%)
HSVhsv(263, 62%, 94%)
CMYKcmyk(38.1%, 61.9%, 0%, 6.3%)
CIE-LABlab(51.85, 53.67, -66.34)
CIE-LCHlch(51.85, 85.33, 308.98°)
OKLaboklab(60.8% 0.0979 -0.1889)
OKLCHoklch(60.8% 0.213 297.4)
XYZxyz(31.5298, 20.0096, 83.8457)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BEF #B6EF5B
analogous
#5B6CEF #945BEF #DE5BEF
triadic
#945BEF #EF945B #5BEF94
tetradic
#945BEF #EF5B6C #B6EF5B #5BEFDE
square
#945BEF #EF5B6C #B6EF5B #5BEFDE
split-complementary
#945BEF #EFDE5B #6CEF5B
monochromatic
#5412BD #7023EA #945BEF #B893F4 #DDCBFA

Accessibility & contrast

On white

4.20
#945BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#945BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945BEF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BEF#FFFFFF#000000##000000
##945BEF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#077AEC
Tritanopia (blue-blind)
#7E7C9D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945bef;
/* rgb */ color: rgb(148, 91, 239);
/* oklch */ color: oklch(60.8% 0.213 297.4);
Tailwind
colors: {
  custom: {
    50: '#b98cf5',
    500: '#945bef',
    950: '#000000',
  },
}
SCSS
$custom: #945bef;
$custom-light: #b98cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#945bef",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 263.108,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60799,
    "c": 0.21274,
    "h": 297.4
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

primary
#945BEF
secondary
#D9ECBA
accent
#DF078C
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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