#945CF8#945CF8

#945CF8 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.6% C 0.222 H 295.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#945CF8
RGBrgb(148, 92, 248)
HSLhsl(262, 92%, 67%)
HSVhsv(262, 63%, 97%)
CMYKcmyk(40.3%, 62.9%, 0%, 2.7%)
CIE-LABlab(52.65, 55.44, -70.06)
CIE-LCHlch(52.65, 89.35, 308.36°)
OKLaboklab(61.57% 0.0961 -0.1998)
OKLCHoklch(61.57% 0.222 295.7)
XYZxyz(32.9787, 20.7268, 91.0519)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945CF8 #C0F85C
analogous
#5C72F8 #945CF8 #E25CF8
triadic
#945CF8 #F8945C #5CF894
tetradic
#945CF8 #F85C72 #C0F85C #5CF8E2
square
#945CF8 #F85C72 #C0F85C #5CF8E2
split-complementary
#945CF8 #F8E25C #72F85C
monochromatic
#5109D1 #6D21F5 #945CF8 #BB97FB #E1D1FD

Accessibility & contrast

On white

4.08
#945CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#945CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945CF8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945CF8#FFFFFF#000000##000000
##945CF81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFD
Deuteranopia (green-blind)
#007BF5
Tritanopia (blue-blind)
#7A80A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #945cf8;
/* rgb */ color: rgb(148, 92, 248);
/* oklch */ color: oklch(61.6% 0.222 295.7);
Tailwind
colors: {
  custom: {
    50: '#ba8dfb',
    500: '#945cf8',
    950: '#000000',
  },
}
SCSS
$custom: #945cf8;
$custom-light: #ba8dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#945cf8",
  "rgb": {
    "r": 148,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 261.538,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.22175,
    "h": 295.7
  },
  "luminance": 0.20728
}

Semantic roles & 50–950 ramp

primary
#945CF8
secondary
#DFF1BF
accent
#E60093
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #945CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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