#7E47AB#7E47AB

#7E47AB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.0% C 0.158 H 307.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E47AB
RGBrgb(126, 71, 171)
HSLhsl(273, 41%, 47%)
HSVhsv(273, 58%, 67%)
CMYKcmyk(26.3%, 58.5%, 0%, 32.9%)
CIE-LABlab(41.03, 42.41, -44.74)
CIE-LCHlch(41.03, 61.65, 313.47°)
OKLaboklab(50.97% 0.0952 -0.1261)
OKLCHoklch(50.97% 0.158 307)
XYZxyz(18.2066, 11.8826, 39.8546)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E47AB #74AB47
analogous
#4C47AB #7E47AB #AB47A6
triadic
#7E47AB #AB7E47 #47AB7E
tetradic
#7E47AB #AB4C47 #74AB47 #47A6AB
square
#7E47AB #AB4C47 #74AB47 #47A6AB
split-complementary
#7E47AB #A6AB47 #47AB4C
monochromatic
#3E2355 #5E3580 #7E47AB #9C6DC2 #B998D4

Accessibility & contrast

On white

6.22
#7E47AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E47AB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E47AB#FFFFFF#000000##FFFFFF
##7E47AB1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205FAE
Deuteranopia (green-blind)
#3761A9
Tritanopia (blue-blind)
#775A72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e47ab;
/* rgb */ color: rgb(126, 71, 171);
/* oklch */ color: oklch(51.0% 0.158 307.0);
Tailwind
colors: {
  custom: {
    50: '#a67dc4',
    500: '#7e47ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e47ab;
$custom-light: #a67dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e47ab",
  "rgb": {
    "r": 126,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 273,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50966,
    "c": 0.15797,
    "h": 307
  },
  "luminance": 0.11882
}

Semantic roles & 50–950 ramp

primary
#7E47AB
secondary
#A4C08D
accent
#D1578E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E47AB

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

Preview Lab → · Contrast checker → · Palette generator →

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