#7946CF#7946CF

#7946CF is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 52.8% C 0.200 H 295.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7946CF
RGBrgb(121, 70, 207)
HSLhsl(262, 59%, 54%)
HSVhsv(262, 66%, 81%)
CMYKcmyk(41.5%, 66.2%, 0%, 18.8%)
CIE-LABlab(42.69, 50.91, -63.14)
CIE-LCHlch(42.69, 81.11, 308.88°)
OKLaboklab(52.81% 0.0874 -0.1803)
OKLCHoklch(52.81% 0.2 295.9)
XYZxyz(21.3348, 12.9498, 60.3949)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946CF #9CCF46
analogous
#4658CF #7946CF #BE46CF
triadic
#7946CF #CF7946 #46CF79
tetradic
#7946CF #CF4658 #9CCF46 #46CFBE
square
#7946CF #CF4658 #9CCF46 #46CFBE
split-complementary
#7946CF #CFBE46 #58CF46
monochromatic
#42207B #5C2CAB #7946CF #9C77DC #BFA7E8

Accessibility & contrast

On white

5.85
#7946CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7946CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946CF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946CF#FFFFFF#000000##FFFFFF
##7946CF1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#636685
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7946cf;
/* rgb */ color: rgb(121, 70, 207);
/* oklch */ color: oklch(52.8% 0.200 295.9);
Tailwind
colors: {
  custom: {
    50: '#a67ddf',
    500: '#7946cf',
    950: '#000000',
  },
}
SCSS
$custom: #7946cf;
$custom-light: #a67ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#7946cf",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 207
  },
  "hsl": {
    "h": 262.336,
    "s": 58.798,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.20038,
    "h": 295.9
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#7946CF
secondary
#C0D59B
accent
#E246A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946CF

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

Preview Lab → · Contrast checker → · Palette generator →

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