#7946CE#7946CE

#7946CE is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.199 H 296.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7946CE
RGBrgb(121, 70, 206)
HSLhsl(263, 58%, 54%)
HSVhsv(263, 66%, 81%)
CMYKcmyk(41.3%, 66%, 0%, 19.2%)
CIE-LABlab(42.61, 50.64, -62.68)
CIE-LCHlch(42.61, 80.59, 308.94°)
OKLaboklab(52.74% 0.0876 -0.179)
OKLCHoklch(52.74% 0.199 296.1)
XYZxyz(21.2130, 12.9011, 59.7531)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946CE #9BCE46
analogous
#4657CE #7946CE #BD46CE
triadic
#7946CE #CE7946 #46CE79
tetradic
#7946CE #CE4657 #9BCE46 #46CEBD
square
#7946CE #CE4657 #9BCE46 #46CEBD
split-complementary
#7946CE #CEBD46 #57CE46
monochromatic
#422079 #5C2DAA #7946CE #9C76DB #BFA7E8

Accessibility & contrast

On white

5.87
#7946CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7946CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946CE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946CE#FFFFFF#000000##FFFFFF
##7946CE1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#636684
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7946ce;
/* rgb */ color: rgb(121, 70, 206);
/* oklch */ color: oklch(52.7% 0.199 296.1);
Tailwind
colors: {
  custom: {
    50: '#a67dde',
    500: '#7946ce',
    950: '#000000',
  },
}
SCSS
$custom: #7946ce;
$custom-light: #a67dde;
$custom-dark: #000000;
JSON
{
  "hex": "#7946ce",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 206
  },
  "hsl": {
    "h": 262.5,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52736,
    "c": 0.19923,
    "h": 296.1
  },
  "luminance": 0.12901
}

Semantic roles & 50–950 ramp

primary
#7946CE
secondary
#BFD59B
accent
#E146A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946CE

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

Preview Lab → · Contrast checker → · Palette generator →

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