#7E46AF#7E46AF

#7E46AF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.164 H 306.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7E46AF
RGBrgb(126, 70, 175)
HSLhsl(272, 43%, 48%)
HSVhsv(272, 60%, 69%)
CMYKcmyk(28%, 60%, 0%, 31.4%)
CIE-LABlab(41.07, 43.91, -47.04)
CIE-LCHlch(41.07, 64.35, 313.03°)
OKLaboklab(51.08% 0.0965 -0.1328)
OKLCHoklch(51.08% 0.164 306)
XYZxyz(18.5306, 11.9112, 41.8720)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46AF #77AF46
analogous
#4946AF #7E46AF #AF46AB
triadic
#7E46AF #AF7E46 #46AF7E
tetradic
#7E46AF #AF4946 #77AF46 #46ABAF
square
#7E46AF #AF4946 #77AF46 #46ABAF
split-complementary
#7E46AF #ABAF46 #46AF49
monochromatic
#3F2358 #5F3583 #7E46AF #9C6DC5 #BA99D6

Accessibility & contrast

On white

6.21
#7E46AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E46AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46AF
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46AF#FFFFFF#000000##FFFFFF
##7E46AF1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175FB2
Deuteranopia (green-blind)
#3261AD
Tritanopia (blue-blind)
#765B74
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e46af;
/* rgb */ color: rgb(126, 70, 175);
/* oklch */ color: oklch(51.1% 0.164 306.0);
Tailwind
colors: {
  custom: {
    50: '#a77cc7',
    500: '#7e46af',
    950: '#000000',
  },
}
SCSS
$custom: #7e46af;
$custom-light: #a77cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46af",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 272,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.16415,
    "h": 306
  },
  "luminance": 0.11911
}

Semantic roles & 50–950 ramp

primary
#7E46AF
secondary
#A7C28E
accent
#D35590
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E46AF

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

Preview Lab → · Contrast checker → · Palette generator →

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