#7946CB#7946CB

#7946CB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.196 H 296.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7946CB
RGBrgb(121, 70, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.4%, 65.5%, 0%, 20.4%)
CIE-LABlab(42.39, 49.86, -61.31)
CIE-LCHlch(42.39, 79.02, 309.12°)
OKLaboklab(52.51% 0.0879 -0.1749)
OKLCHoklch(52.51% 0.196 296.7)
XYZxyz(20.8520, 12.7567, 57.8520)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946CB #98CB46
analogous
#4655CB #7946CB #BC46CB
triadic
#7946CB #CB7946 #46CB79
tetradic
#7946CB #CB4655 #98CB46 #46CBBC
square
#7946CB #CB4655 #98CB46 #46CBBC
split-complementary
#7946CB #CBBC46 #55CB46
monochromatic
#412176 #5C2EA5 #7946CB #9C76D8 #BEA6E6

Accessibility & contrast

On white

5.91
#7946CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7946CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946CB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946CB#FFFFFF#000000##FFFFFF
##7946CB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#646582
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7946cb;
/* rgb */ color: rgb(121, 70, 203);
/* oklch */ color: oklch(52.5% 0.196 296.7);
Tailwind
colors: {
  custom: {
    50: '#a67ddc',
    500: '#7946cb',
    950: '#000000',
  },
}
SCSS
$custom: #7946cb;
$custom-light: #a67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7946cb",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 263.008,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52509,
    "c": 0.19576,
    "h": 296.7
  },
  "luminance": 0.12757
}

Semantic roles & 50–950 ramp

primary
#7946CB
secondary
#BDD39A
accent
#DF48A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946CB

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

Preview Lab → · Contrast checker → · Palette generator →

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