#7E47AA#7E47AA

#7E47AA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.9% C 0.157 H 307.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7E47AA
RGBrgb(126, 71, 170)
HSLhsl(273, 41%, 47%)
HSVhsv(273, 58%, 67%)
CMYKcmyk(25.9%, 58.2%, 0%, 33.3%)
CIE-LABlab(40.97, 42.17, -44.24)
CIE-LCHlch(40.97, 61.12, 313.63°)
OKLaboklab(50.9% 0.0952 -0.1246)
OKLCHoklch(50.9% 0.157 307.4)
XYZxyz(18.1116, 11.8446, 39.3545)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E47AA #73AA47
analogous
#4C47AA #7E47AA #AA47A5
triadic
#7E47AA #AA7E47 #47AA7E
tetradic
#7E47AA #AA4C47 #73AA47 #47A5AA
square
#7E47AA #AA4C47 #73AA47 #47A5AA
split-complementary
#7E47AA #A5AA47 #47AA4C
monochromatic
#3E2354 #5E357F #7E47AA #9C6CC2 #B998D4

Accessibility & contrast

On white

6.23
#7E47AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E47AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E47AA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E47AA#FFFFFF#000000##FFFFFF
##7E47AA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225FAD
Deuteranopia (green-blind)
#3861A8
Tritanopia (blue-blind)
#775A72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e47aa;
/* rgb */ color: rgb(126, 71, 170);
/* oklch */ color: oklch(50.9% 0.157 307.4);
Tailwind
colors: {
  custom: {
    50: '#a67dc4',
    500: '#7e47aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e47aa;
$custom-light: #a67dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e47aa",
  "rgb": {
    "r": 126,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 273.333,
    "s": 41.079,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50902,
    "c": 0.15681,
    "h": 307.4
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E47AA

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

Preview Lab → · Contrast checker → · Palette generator →

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