#7E46CC#7E46CC

#7E46CC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.198 H 298.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7E46CC
RGBrgb(126, 70, 204)
HSLhsl(265, 57%, 54%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.2%, 65.7%, 0%, 20%)
CIE-LABlab(43.03, 51.13, -60.84)
CIE-LCHlch(43.03, 79.47, 310.04°)
OKLaboklab(53.11% 0.0946 -0.1733)
OKLCHoklch(53.11% 0.198 298.6)
XYZxyz(21.6907, 13.1753, 58.5153)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46CC #94CC46
analogous
#4651CC #7E46CC #C146CC
triadic
#7E46CC #CC7E46 #46CC7E
tetradic
#7E46CC #CC4651 #94CC46 #46CCC1
square
#7E46CC #CC4651 #94CC46 #46CCC1
split-complementary
#7E46CC #CCC146 #51CC46
monochromatic
#452177 #602EA7 #7E46CC #9F76D9 #C1A6E6

Accessibility & contrast

On white

5.78
#7E46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46CC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46CC#FFFFFF#000000##FFFFFF
##7E46CC1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#6C6583
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e46cc;
/* rgb */ color: rgb(126, 70, 204);
/* oklch */ color: oklch(53.1% 0.198 298.6);
Tailwind
colors: {
  custom: {
    50: '#a97ddc',
    500: '#7e46cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e46cc;
$custom-light: #a97ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46cc",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 265.075,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53113,
    "c": 0.1975,
    "h": 298.6
  },
  "luminance": 0.13176
}

Semantic roles & 50–950 ramp

primary
#7E46CC
secondary
#BCD49A
accent
#E048A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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