#7E3EA2#7E3EA2

#7E3EA2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.162 H 311.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7E3EA2
RGBrgb(126, 62, 162)
HSLhsl(278, 45%, 44%)
HSVhsv(278, 62%, 64%)
CMYKcmyk(22.2%, 61.7%, 0%, 36.5%)
CIE-LABlab(38.71, 45.06, -43.09)
CIE-LCHlch(38.71, 62.34, 316.28°)
OKLaboklab(49.1% 0.1068 -0.1212)
OKLCHoklch(49.1% 0.162 311.4)
XYZxyz(16.8472, 10.4899, 35.3127)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EA2 #62A23E
analogous
#4C3EA2 #7E3EA2 #A23E94
triadic
#7E3EA2 #A27E3E #3EA27E
tetradic
#7E3EA2 #A24C3E #62A23E #3E94A2
square
#7E3EA2 #A24C3E #62A23E #3E94A2
split-complementary
#7E3EA2 #94A23E #3EA24C
monochromatic
#391C49 #5C2D76 #7E3EA2 #9D5CC1 #B789D2

Accessibility & contrast

On white

6.78
#7E3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EA2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EA2#FFFFFF#000000##FFFFFF
##7E3EA21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A5
Deuteranopia (green-blind)
#355CA0
Tritanopia (blue-blind)
#7A516A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e3ea2;
/* rgb */ color: rgb(126, 62, 162);
/* oklch */ color: oklch(49.1% 0.162 311.4);
Tailwind
colors: {
  custom: {
    50: '#a677be',
    500: '#7e3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ea2;
$custom-light: #a677be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ea2",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 278.4,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49096,
    "c": 0.16154,
    "h": 311.4
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#7E3EA2
secondary
#95BC80
accent
#D45382
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7E3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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