#7946BE#7946BE

#7946BE is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.181 H 299.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7946BE
RGBrgb(121, 70, 190)
HSLhsl(266, 48%, 51%)
HSVhsv(266, 63%, 75%)
CMYKcmyk(36.3%, 63.2%, 0%, 25.5%)
CIE-LABlab(41.47, 46.49, -55.24)
CIE-LCHlch(41.47, 72.20, 310.09°)
OKLaboklab(51.55% 0.0891 -0.1571)
OKLCHoklch(51.55% 0.181 299.6)
XYZxyz(19.3673, 12.1628, 50.0325)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946BE #8BBE46
analogous
#464FBE #7946BE #B546BE
triadic
#7946BE #BE7946 #46BE79
tetradic
#7946BE #BE464F #8BBE46 #46BEB5
square
#7946BE #BE464F #8BBE46 #46BEB5
split-complementary
#7946BE #BEB546 #4FBE46
monochromatic
#402466 #5C3493 #7946BE #9A73CE #BBA1DE

Accessibility & contrast

On white

6.12
#7946BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7946BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946BE
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946BE#FFFFFF#000000##FFFFFF
##7946BE1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#1161BB
Tritanopia (blue-blind)
#6A607B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7946be;
/* rgb */ color: rgb(121, 70, 190);
/* oklch */ color: oklch(51.6% 0.181 299.6);
Tailwind
colors: {
  custom: {
    50: '#a47cd2',
    500: '#7946be',
    950: '#000000',
  },
}
SCSS
$custom: #7946be;
$custom-light: #a47cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7946be",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 265.5,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51553,
    "c": 0.1806,
    "h": 299.6
  },
  "luminance": 0.12163
}

Semantic roles & 50–950 ramp

primary
#7946BE
secondary
#B4CA95
accent
#D8509E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7946BE

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

Preview Lab → · Contrast checker → · Palette generator →

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