#945AEF#945AEF

#945AEF is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.7% C 0.214 H 297.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#945AEF
RGBrgb(148, 90, 239)
HSLhsl(263, 82%, 65%)
HSVhsv(263, 62%, 94%)
CMYKcmyk(38.1%, 62.3%, 0%, 6.3%)
CIE-LABlab(51.66, 54.19, -66.65)
CIE-LCHlch(51.66, 85.90, 309.12°)
OKLaboklab(60.66% 0.099 -0.1898)
OKLCHoklch(60.66% 0.214 297.6)
XYZxyz(31.4449, 19.8397, 83.8174)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945AEF #B5EF5A
analogous
#5A6BEF #945AEF #DF5AEF
triadic
#945AEF #EF945A #5AEF94
tetradic
#945AEF #EF5A6B #B5EF5A #5AEFDF
square
#945AEF #EF5A6B #B5EF5A #5AEFDF
split-complementary
#945AEF #EFDF5A #6BEF5A
monochromatic
#5412BC #7022EA #945AEF #B892F4 #DCCAFA

Accessibility & contrast

On white

4.23
#945AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#945AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945AEF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945AEF#FFFFFF#000000##000000
##945AEF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#7E7B9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #945aef;
/* rgb */ color: rgb(148, 90, 239);
/* oklch */ color: oklch(60.7% 0.214 297.6);
Tailwind
colors: {
  custom: {
    50: '#b98bf5',
    500: '#945aef',
    950: '#000000',
  },
}
SCSS
$custom: #945aef;
$custom-light: #b98bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#945aef",
  "rgb": {
    "r": 148,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 263.356,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6066,
    "c": 0.21405,
    "h": 297.6
  },
  "luminance": 0.1984
}

Semantic roles & 50–950 ramp

primary
#945AEF
secondary
#D8ECB9
accent
#DF078B
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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