#7C3EA2#7C3EA2

#7C3EA2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.161 H 310.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7C3EA2
RGBrgb(124, 62, 162)
HSLhsl(277, 45%, 44%)
HSVhsv(277, 62%, 64%)
CMYKcmyk(23.5%, 61.7%, 0%, 36.5%)
CIE-LABlab(38.44, 44.56, -43.52)
CIE-LCHlch(38.44, 62.29, 315.67°)
OKLaboklab(48.85% 0.1042 -0.1225)
OKLCHoklch(48.85% 0.161 310.4)
XYZxyz(16.5552, 10.3393, 35.2990)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3EA2 #64A23E
analogous
#4A3EA2 #7C3EA2 #A23E96
triadic
#7C3EA2 #A27C3E #3EA27C
tetradic
#7C3EA2 #A24A3E #64A23E #3E96A2
square
#7C3EA2 #A24A3E #64A23E #3E96A2
split-complementary
#7C3EA2 #96A23E #3EA24A
monochromatic
#381C49 #5A2D76 #7C3EA2 #9B5CC1 #B689D2

Accessibility & contrast

On white

6.85
#7C3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7C3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3EA2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3EA2#FFFFFF#000000##FFFFFF
##7C3EA21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1558A5
Deuteranopia (green-blind)
#335CA0
Tritanopia (blue-blind)
#77516A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c3ea2;
/* rgb */ color: rgb(124, 62, 162);
/* oklch */ color: oklch(48.8% 0.161 310.4);
Tailwind
colors: {
  custom: {
    50: '#a577be',
    500: '#7c3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7c3ea2;
$custom-light: #a577be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3ea2",
  "rgb": {
    "r": 124,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 277.2,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.16083,
    "h": 310.4
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#7C3EA2
secondary
#97BC80
accent
#D45384
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7C3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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