#7C46BE#7C46BE

#7C46BE is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.181 H 301.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7C46BE
RGBrgb(124, 70, 190)
HSLhsl(267, 48%, 51%)
HSVhsv(267, 63%, 75%)
CMYKcmyk(34.7%, 63.2%, 0%, 25.5%)
CIE-LABlab(41.82, 47.16, -54.67)
CIE-LCHlch(41.82, 72.19, 310.78°)
OKLaboklab(51.88% 0.0932 -0.1553)
OKLCHoklch(51.88% 0.181 301)
XYZxyz(19.7944, 12.3830, 50.0525)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C46BE #88BE46
analogous
#464CBE #7C46BE #B846BE
triadic
#7C46BE #BE7C46 #46BE7C
tetradic
#7C46BE #BE464C #88BE46 #46BEB8
square
#7C46BE #BE464C #88BE46 #46BEB8
split-complementary
#7C46BE #BEB846 #4CBE46
monochromatic
#412466 #5F3493 #7C46BE #9C73CE #BCA1DE

Accessibility & contrast

On white

6.04
#7C46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7C46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C46BE
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C46BE#FFFFFF#000000##FFFFFF
##7C46BE1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#1862BB
Tritanopia (blue-blind)
#6E607B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c46be;
/* rgb */ color: rgb(124, 70, 190);
/* oklch */ color: oklch(51.9% 0.181 301.0);
Tailwind
colors: {
  custom: {
    50: '#a67cd2',
    500: '#7c46be',
    950: '#000000',
  },
}
SCSS
$custom: #7c46be;
$custom-light: #a67cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c46be",
  "rgb": {
    "r": 124,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 267,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5188,
    "c": 0.1811,
    "h": 301
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#7C46BE
secondary
#B3CA95
accent
#D8509B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7C46BE

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

Preview Lab → · Contrast checker → · Palette generator →

#7C46BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva