#945CEB#945CEB

#945CEB is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.207 H 298.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#945CEB
RGBrgb(148, 92, 235)
HSLhsl(263, 78%, 64%)
HSVhsv(263, 61%, 92%)
CMYKcmyk(37%, 60.9%, 0%, 7.8%)
CIE-LABlab(51.78, 52.14, -64.21)
CIE-LCHlch(51.78, 82.71, 309.08°)
OKLaboklab(60.67% 0.097 -0.1826)
OKLCHoklch(60.67% 0.207 298)
XYZxyz(31.0315, 19.9479, 80.7966)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CEB #B3EB5C
analogous
#5C6CEB #945CEB #DC5CEB
triadic
#945CEB #EB945C #5CEB94
tetradic
#945CEB #EB5C6C #B3EB5C #5CEBDC
square
#945CEB #EB5C6C #B3EB5C #5CEBDC
split-complementary
#945CEB #EBDC5C #6CEB5C
monochromatic
#5516B6 #7025E4 #945CEB #B893F2 #DCC9F8

Accessibility & contrast

On white

4.21
#945CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#945CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CEB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CEB#FFFFFF#000000##000000
##945CEB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#1C7AE8
Tritanopia (blue-blind)
#807B9B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #945ceb;
/* rgb */ color: rgb(148, 92, 235);
/* oklch */ color: oklch(60.7% 0.207 298.0);
Tailwind
colors: {
  custom: {
    50: '#b98df2',
    500: '#945ceb',
    950: '#000000',
  },
}
SCSS
$custom: #945ceb;
$custom-light: #b98df2;
$custom-dark: #000000;
JSON
{
  "hex": "#945ceb",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 263.497,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60665,
    "c": 0.20679,
    "h": 298
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

primary
#945CEB
secondary
#D7EAB8
accent
#DA0B89
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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