#945AF9#945AF9

#945AF9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.4% C 0.225 H 295.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#945AF9
RGBrgb(148, 90, 249)
HSLhsl(262, 93%, 66%)
HSVhsv(262, 64%, 98%)
CMYKcmyk(40.6%, 63.9%, 0%, 2.4%)
CIE-LABlab(52.34, 56.73, -71.12)
CIE-LCHlch(52.34, 90.98, 308.57°)
OKLaboklab(61.37% 0.0981 -0.2029)
OKLCHoklch(61.37% 0.225 295.8)
XYZxyz(32.9633, 20.4471, 91.8141)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945AF9 #BFF95A
analogous
#5A70F9 #945AF9 #E45AF9
triadic
#945AF9 #F9945A #5AF994
tetradic
#945AF9 #F95A70 #BFF95A #5AF9E4
square
#945AF9 #F95A70 #BFF95A #5AF9E4
split-complementary
#945AF9 #F9E45A #70F95A
monochromatic
#5108D1 #6E1FF7 #945AF9 #BA95FB #E1D0FD

Accessibility & contrast

On white

4.13
#945AF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#945AF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945AF9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945AF9#FFFFFF#000000##000000
##945AF91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFE
Deuteranopia (green-blind)
#007BF6
Tritanopia (blue-blind)
#7A7FA2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #945af9;
/* rgb */ color: rgb(148, 90, 249);
/* oklch */ color: oklch(61.4% 0.225 295.8);
Tailwind
colors: {
  custom: {
    50: '#ba8cfc',
    500: '#945af9',
    950: '#000000',
  },
}
SCSS
$custom: #945af9;
$custom-light: #ba8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#945af9",
  "rgb": {
    "r": 148,
    "g": 90,
    "b": 249
  },
  "hsl": {
    "h": 261.887,
    "s": 92.982,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6137,
    "c": 0.22542,
    "h": 295.8
  },
  "luminance": 0.20448
}

Semantic roles & 50–950 ramp

primary
#945AF9
secondary
#DEF1BE
accent
#E60092
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #945AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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