#945CEC#945CEC

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

Color values

HEX#945CEC
RGBrgb(148, 92, 236)
HSLhsl(263, 79%, 64%)
HSVhsv(263, 61%, 93%)
CMYKcmyk(37.3%, 61%, 0%, 7.5%)
CIE-LABlab(51.84, 52.39, -64.66)
CIE-LCHlch(51.84, 83.23, 309.02°)
OKLaboklab(60.73% 0.097 -0.1839)
OKLCHoklch(60.73% 0.208 297.8)
XYZxyz(31.1764, 20.0059, 81.5596)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CEC #B4EC5C
analogous
#5C6CEC #945CEC #DC5CEC
triadic
#945CEC #EC945C #5CEC94
tetradic
#945CEC #EC5C6C #B4EC5C #5CECDC
square
#945CEC #EC5C6C #B4EC5C #5CECDC
split-complementary
#945CEC #ECDC5C #6CEC5C
monochromatic
#5515B8 #7025E6 #945CEC #B893F2 #DCCAF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##945CEC#FFFFFF#000000##000000
##945CEC1.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)
#007CF1
Deuteranopia (green-blind)
#197AE9
Tritanopia (blue-blind)
#7F7C9C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945cec;
/* rgb */ color: rgb(148, 92, 236);
/* oklch */ color: oklch(60.7% 0.208 297.8);
Tailwind
colors: {
  custom: {
    50: '#b98df3',
    500: '#945cec',
    950: '#000000',
  },
}
SCSS
$custom: #945cec;
$custom-light: #b98df3;
$custom-dark: #000000;
JSON
{
  "hex": "#945cec",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 263.333,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60733,
    "c": 0.20794,
    "h": 297.8
  },
  "luminance": 0.20006
}

Semantic roles & 50–950 ramp

primary
#945CEC
secondary
#D7EBB9
accent
#DB0A8A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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