#945EEC#945EEC

#945EEC is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.0% C 0.205 H 297.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#945EEC
RGBrgb(148, 94, 236)
HSLhsl(263, 79%, 65%)
HSVhsv(263, 60%, 93%)
CMYKcmyk(37.3%, 60.2%, 0%, 7.5%)
CIE-LABlab(52.24, 51.34, -64.03)
CIE-LCHlch(52.24, 82.07, 308.72°)
OKLaboklab(61.02% 0.0947 -0.1821)
OKLCHoklch(61.02% 0.205 297.5)
XYZxyz(31.3519, 20.3570, 81.6181)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945EEC #B6EC5E
analogous
#5E6FEC #945EEC #DB5EEC
triadic
#945EEC #EC945E #5EEC94
tetradic
#945EEC #EC5E6F #B6EC5E #5EECDB
square
#945EEC #EC5E6F #B6EC5E #5EECDB
split-complementary
#945EEC #ECDB5E #6FEC5E
monochromatic
#5416BA #7027E6 #945EEC #B895F2 #DDCBF9

Accessibility & contrast

On white

4.14
#945EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#945EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945EEC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945EEC#FFFFFF#000000##000000
##945EEC1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#1F7BE9
Tritanopia (blue-blind)
#7F7D9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #945eec;
/* rgb */ color: rgb(148, 94, 236);
/* oklch */ color: oklch(61.0% 0.205 297.5);
Tailwind
colors: {
  custom: {
    50: '#b98ef3',
    500: '#945eec',
    950: '#000000',
  },
}
SCSS
$custom: #945eec;
$custom-light: #b98ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#945eec",
  "rgb": {
    "r": 148,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 262.817,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.20524,
    "h": 297.5
  },
  "luminance": 0.20357
}

Semantic roles & 50–950 ramp

primary
#945EEC
secondary
#D9EBBB
accent
#DB0A8C
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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