#7946CD#7946CD

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

Color values

HEX#7946CD
RGBrgb(121, 70, 205)
HSLhsl(263, 57%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(41%, 65.9%, 0%, 19.6%)
CIE-LABlab(42.54, 50.38, -62.23)
CIE-LCHlch(42.54, 80.07, 309.00°)
OKLaboklab(52.66% 0.0877 -0.1776)
OKLCHoklch(52.66% 0.198 296.3)
XYZxyz(21.0919, 12.8526, 59.1153)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946CD #9ACD46
analogous
#4657CD #7946CD #BD46CD
triadic
#7946CD #CD7946 #46CD79
tetradic
#7946CD #CD4657 #9ACD46 #46CDBD
square
#7946CD #CD4657 #9ACD46 #46CDBD
split-complementary
#7946CD #CDBD46 #57CD46
monochromatic
#422078 #5C2DA8 #7946CD #9C76DA #BFA6E7

Accessibility & contrast

On white

5.88
#7946CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7946CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946CD
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946CD#FFFFFF#000000##FFFFFF
##7946CD1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#646683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7946cd;
/* rgb */ color: rgb(121, 70, 205);
/* oklch */ color: oklch(52.7% 0.198 296.3);
Tailwind
colors: {
  custom: {
    50: '#a67ddd',
    500: '#7946cd',
    950: '#000000',
  },
}
SCSS
$custom: #7946cd;
$custom-light: #a67ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#7946cd",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 262.667,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5266,
    "c": 0.19807,
    "h": 296.3
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#7946CD
secondary
#BED49B
accent
#E147A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946CD

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

Preview Lab → · Contrast checker → · Palette generator →

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