#945FE8#945FE8

#945FE8 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.9% C 0.199 H 298.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#945FE8
RGBrgb(148, 95, 232)
HSLhsl(263, 75%, 64%)
HSVhsv(263, 59%, 91%)
CMYKcmyk(36.2%, 59.1%, 0%, 9%)
CIE-LABlab(52.18, 49.79, -61.87)
CIE-LCHlch(52.18, 79.42, 308.83°)
OKLaboklab(60.9% 0.0937 -0.1757)
OKLCHoklch(60.9% 0.199 298.1)
XYZxyz(30.8668, 20.3061, 78.6215)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FE8 #B3E85F
analogous
#5F6FE8 #945FE8 #D95FE8
triadic
#945FE8 #E8945F #5FE894
tetradic
#945FE8 #E85F6F #B3E85F #5FE8D9
square
#945FE8 #E85F6F #B3E85F #5FE8D9
split-complementary
#945FE8 #E8D95F #6FE85F
monochromatic
#551AB3 #7029E0 #945FE8 #B895F0 #DCCAF7

Accessibility & contrast

On white

4.15
#945FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#945FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FE8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FE8#FFFFFF#000000##000000
##945FE81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#017DEC
Deuteranopia (green-blind)
#2A7BE5
Tritanopia (blue-blind)
#817C9B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #945fe8;
/* rgb */ color: rgb(148, 95, 232);
/* oklch */ color: oklch(60.9% 0.199 298.1);
Tailwind
colors: {
  custom: {
    50: '#b88ef0',
    500: '#945fe8',
    950: '#000000',
  },
}
SCSS
$custom: #945fe8;
$custom-light: #b88ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#945fe8",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 263.212,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60897,
    "c": 0.19918,
    "h": 298.1
  },
  "luminance": 0.20307
}

Semantic roles & 50–950 ramp

primary
#945FE8
secondary
#D7E9BA
accent
#D70E89
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #945FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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