#945FEF#945FEF

#945FEF is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.4% C 0.207 H 296.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#945FEF
RGBrgb(148, 95, 239)
HSLhsl(262, 82%, 65%)
HSVhsv(262, 60%, 94%)
CMYKcmyk(38.1%, 60.3%, 0%, 6.3%)
CIE-LABlab(52.63, 51.57, -65.07)
CIE-LCHlch(52.63, 83.03, 308.40°)
OKLaboklab(61.37% 0.0935 -0.1851)
OKLCHoklch(61.37% 0.207 296.8)
XYZxyz(31.8809, 20.7118, 83.9627)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FEF #BAEF5F
analogous
#5F72EF #945FEF #DC5FEF
triadic
#945FEF #EF945F #5FEF94
tetradic
#945FEF #EF5F72 #BAEF5F #5FEFDC
square
#945FEF #EF5F72 #BAEF5F #5FEFDC
split-complementary
#945FEF #EFDC5F #72EF5F
monochromatic
#5313C0 #6F27E9 #945FEF #B997F5 #DECEFA

Accessibility & contrast

On white

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

On black

5.14
#945FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FEF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FEF#FFFFFF#000000##000000
##945FEF1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#1A7CEC
Tritanopia (blue-blind)
#7E7F9E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #945fef;
/* rgb */ color: rgb(148, 95, 239);
/* oklch */ color: oklch(61.4% 0.207 296.8);
Tailwind
colors: {
  custom: {
    50: '#b98ff5',
    500: '#945fef',
    950: '#000000',
  },
}
SCSS
$custom: #945fef;
$custom-light: #b98ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#945fef",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 262.083,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6137,
    "c": 0.20739,
    "h": 296.8
  },
  "luminance": 0.20712
}

Semantic roles & 50–950 ramp

primary
#945FEF
secondary
#DBEDBD
accent
#DE078F
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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