#7E46BC#7E46BC

#7E46BC is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.179 H 302.4°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7E46BC
RGBrgb(126, 70, 188)
HSLhsl(268, 47%, 51%)
HSVhsv(268, 63%, 74%)
CMYKcmyk(33%, 62.8%, 0%, 26.3%)
CIE-LABlab(41.92, 47.10, -53.33)
CIE-LCHlch(41.92, 71.15, 311.45°)
OKLaboklab(51.96% 0.096 -0.1513)
OKLCHoklch(51.96% 0.179 302.4)
XYZxyz(19.8693, 12.4467, 48.9229)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46BC #84BC46
analogous
#4649BC #7E46BC #B946BC
triadic
#7E46BC #BC7E46 #46BC7E
tetradic
#7E46BC #BC4649 #84BC46 #46BCB9
square
#7E46BC #BC4649 #84BC46 #46BCB9
split-complementary
#7E46BC #BCB946 #49BC46
monochromatic
#422464 #603490 #7E46BC #9D73CC #BDA0DD

Accessibility & contrast

On white

6.02
#7E46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7E46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46BC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46BC#FFFFFF#000000##FFFFFF
##7E46BC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2063B9
Tritanopia (blue-blind)
#725F7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e46bc;
/* rgb */ color: rgb(126, 70, 188);
/* oklch */ color: oklch(52.0% 0.179 302.4);
Tailwind
colors: {
  custom: {
    50: '#a87cd1',
    500: '#7e46bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e46bc;
$custom-light: #a87cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46bc",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 268.475,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51961,
    "c": 0.17918,
    "h": 302.4
  },
  "luminance": 0.12447
}

Semantic roles & 50–950 ramp

primary
#7E46BC
secondary
#B0C995
accent
#D65197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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