#945CED#945CED

#945CED is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.209 H 297.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#945CED
RGBrgb(148, 92, 237)
HSLhsl(263, 80%, 65%)
HSVhsv(263, 61%, 93%)
CMYKcmyk(37.6%, 61.2%, 0%, 7.1%)
CIE-LABlab(51.91, 52.65, -65.12)
CIE-LCHlch(51.91, 83.74, 308.96°)
OKLaboklab(60.8% 0.0969 -0.1853)
OKLCHoklch(60.8% 0.209 297.6)
XYZxyz(31.3221, 20.0641, 82.3269)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CED #B5ED5C
analogous
#5C6DED #945CED #DC5CED
triadic
#945CED #ED945C #5CED94
tetradic
#945CED #ED5C6D #B5ED5C #5CEDDC
square
#945CED #ED5C6D #B5ED5C #5CEDDC
split-complementary
#945CED #EDDC5C #6DED5C
monochromatic
#5415BA #7025E7 #945CED #B893F3 #DCCAF9

Accessibility & contrast

On white

4.19
#945CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#945CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CED
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CED#FFFFFF#000000##000000
##945CED1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#167AEA
Tritanopia (blue-blind)
#7F7C9C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945ced;
/* rgb */ color: rgb(148, 92, 237);
/* oklch */ color: oklch(60.8% 0.209 297.6);
Tailwind
colors: {
  custom: {
    50: '#b98df4',
    500: '#945ced',
    950: '#000000',
  },
}
SCSS
$custom: #945ced;
$custom-light: #b98df4;
$custom-dark: #000000;
JSON
{
  "hex": "#945ced",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 263.172,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60802,
    "c": 0.2091,
    "h": 297.6
  },
  "luminance": 0.20065
}

Semantic roles & 50–950 ramp

primary
#945CED
secondary
#D8EBB9
accent
#DC098B
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945CED

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

Preview Lab → · Contrast checker → · Palette generator →

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