#7946E1#7946E1

#7946E1 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.221 H 292.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7946E1
RGBrgb(121, 70, 225)
HSLhsl(260, 72%, 58%)
HSVhsv(260, 69%, 88%)
CMYKcmyk(46.2%, 68.9%, 0%, 11.8%)
CIE-LABlab(44.06, 55.65, -71.21)
CIE-LCHlch(44.06, 90.38, 308.01°)
OKLaboklab(54.23% 0.0847 -0.204)
OKLCHoklch(54.23% 0.221 292.6)
XYZxyz(23.6621, 13.8807, 72.6521)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946E1 #AEE146
analogous
#4660E1 #7946E1 #C646E1
triadic
#7946E1 #E17946 #46E179
tetradic
#7946E1 #E14660 #AEE146 #46E1C6
square
#7946E1 #E14660 #AEE146 #46E1C6
split-complementary
#7946E1 #E1C646 #60E146
monochromatic
#411895 #5821C9 #7946E1 #9F7BEA #C5AFF2

Accessibility & contrast

On white

5.56
#7946E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7946E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946E1
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946E1#FFFFFF#000000##FFFFFF
##7946E11.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#0065DE
Tritanopia (blue-blind)
#596D8E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7946e1;
/* rgb */ color: rgb(121, 70, 225);
/* oklch */ color: oklch(54.2% 0.221 292.6);
Tailwind
colors: {
  custom: {
    50: '#a87deb',
    500: '#7946e1',
    950: '#000000',
  },
}
SCSS
$custom: #7946e1;
$custom-light: #a87deb;
$custom-dark: #000000;
JSON
{
  "hex": "#7946e1",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 259.742,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54225,
    "c": 0.22091,
    "h": 292.6
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

primary
#7946E1
secondary
#CCE0A2
accent
#EF39B3
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7946E1

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

Preview Lab → · Contrast checker → · Palette generator →

#7946E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva