#7E46B2#7E46B2

#7E46B2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.168 H 305.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7E46B2
RGBrgb(126, 70, 178)
HSLhsl(271, 44%, 49%)
HSVhsv(271, 61%, 70%)
CMYKcmyk(29.2%, 60.7%, 0%, 30.2%)
CIE-LABlab(41.26, 44.64, -48.50)
CIE-LCHlch(41.26, 65.92, 312.63°)
OKLaboklab(51.28% 0.0964 -0.1371)
OKLCHoklch(51.28% 0.168 305.1)
XYZxyz(18.8285, 12.0304, 43.4410)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46B2 #7AB246
analogous
#4846B2 #7E46B2 #B246B0
triadic
#7E46B2 #B27E46 #46B27E
tetradic
#7E46B2 #B24846 #7AB246 #46B0B2
square
#7E46B2 #B24846 #7AB246 #46B0B2
split-complementary
#7E46B2 #B0B246 #46B248
monochromatic
#40235A #5F3586 #7E46B2 #9C6FC6 #BA9BD8

Accessibility & contrast

On white

6.17
#7E46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7E46B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46B2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46B2#FFFFFF#000000##FFFFFF
##7E46B21.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1060B5
Deuteranopia (green-blind)
#2E61B0
Tritanopia (blue-blind)
#755C75
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e46b2;
/* rgb */ color: rgb(126, 70, 178);
/* oklch */ color: oklch(51.3% 0.168 305.1);
Tailwind
colors: {
  custom: {
    50: '#a77cca',
    500: '#7e46b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e46b2;
$custom-light: #a77cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46b2",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 271.111,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51278,
    "c": 0.16762,
    "h": 305.1
  },
  "luminance": 0.1203
}

Semantic roles & 50–950 ramp

primary
#7E46B2
secondary
#A9C490
accent
#D35592
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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