#7946D9#7946D9

#7946D9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.6% C 0.212 H 294.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7946D9
RGBrgb(121, 70, 217)
HSLhsl(261, 66%, 56%)
HSVhsv(261, 68%, 85%)
CMYKcmyk(44.2%, 67.7%, 0%, 14.9%)
CIE-LABlab(43.44, 53.54, -67.66)
CIE-LCHlch(43.44, 86.28, 308.35°)
OKLaboklab(53.59% 0.086 -0.1936)
OKLCHoklch(53.59% 0.212 294)
XYZxyz(22.5963, 13.4544, 67.0386)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946D9 #A6D946
analogous
#465DD9 #7946D9 #C246D9
triadic
#7946D9 #D97946 #46D979
tetradic
#7946D9 #D9465D #A6D946 #46D9C2
square
#7946D9 #D9465D #A6D946 #46D9C2
split-complementary
#7946D9 #D9C246 #5DD946
monochromatic
#421C89 #5A26BB #7946D9 #9E79E3 #C3ACEE

Accessibility & contrast

On white

5.69
#7946D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7946D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946D9
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946D9#FFFFFF#000000##FFFFFF
##7946D91.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#5E6A8A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7946d9;
/* rgb */ color: rgb(121, 70, 217);
/* oklch */ color: oklch(53.6% 0.212 294.0);
Tailwind
colors: {
  custom: {
    50: '#a77de6',
    500: '#7946d9',
    950: '#000000',
  },
}
SCSS
$custom: #7946d9;
$custom-light: #a77de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7946d9",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 260.816,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.21184,
    "h": 294
  },
  "luminance": 0.13455
}

Semantic roles & 50–950 ramp

primary
#7946D9
secondary
#C7DC9F
accent
#E93FAE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7946D9

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

Preview Lab → · Contrast checker → · Palette generator →

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