#7946D2#7946D2

#7946D2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.0% C 0.204 H 295.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7946D2
RGBrgb(121, 70, 210)
HSLhsl(262, 61%, 55%)
HSVhsv(262, 67%, 82%)
CMYKcmyk(42.4%, 66.7%, 0%, 17.6%)
CIE-LABlab(42.91, 51.69, -64.51)
CIE-LCHlch(42.91, 82.66, 308.71°)
OKLaboklab(53.04% 0.087 -0.1843)
OKLCHoklch(53.04% 0.204 295.3)
XYZxyz(21.7051, 13.0979, 62.3448)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946D2 #9FD246
analogous
#4659D2 #7946D2 #BF46D2
triadic
#7946D2 #D27946 #46D279
tetradic
#7946D2 #D24659 #9FD246 #46D2BF
square
#7946D2 #D24659 #9FD246 #46D2BF
split-complementary
#7946D2 #D2BF46 #59D246
monochromatic
#421F7F #5B2BB0 #7946D2 #9D77DE #C0A8EA

Accessibility & contrast

On white

5.80
#7946D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7946D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946D2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946D2#FFFFFF#000000##FFFFFF
##7946D21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#616886
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7946d2;
/* rgb */ color: rgb(121, 70, 210);
/* oklch */ color: oklch(53.0% 0.204 295.3);
Tailwind
colors: {
  custom: {
    50: '#a67de1',
    500: '#7946d2',
    950: '#000000',
  },
}
SCSS
$custom: #7946d2;
$custom-light: #a67de1;
$custom-dark: #000000;
JSON
{
  "hex": "#7946d2",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 261.857,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53042,
    "c": 0.20384,
    "h": 295.3
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#7946D2
secondary
#C2D79C
accent
#E444AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946D2

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

Preview Lab → · Contrast checker → · Palette generator →

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