#7C3EBA#7C3EBA

#7C3EBA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.187 H 303.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7C3EBA
RGBrgb(124, 62, 186)
HSLhsl(270, 50%, 49%)
HSVhsv(270, 67%, 73%)
CMYKcmyk(33.3%, 66.7%, 0%, 27.1%)
CIE-LABlab(40.04, 50.26, -55.20)
CIE-LCHlch(40.04, 74.65, 312.32°)
OKLaboklab(50.51% 0.1027 -0.1568)
OKLCHoklch(50.51% 0.187 303.2)
XYZxyz(18.8957, 11.2755, 47.6258)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3EBA #7CBA3E
analogous
#3E3EBA #7C3EBA #BA3EBA
triadic
#7C3EBA #BA7C3E #3EBA7C
tetradic
#7C3EBA #BA3E3E #7CBA3E #3EBABA
square
#7C3EBA #BA3E3E #7CBA3E #3EBABA
split-complementary
#7C3EBA #BABA3E #3EBA3E
monochromatic
#3F1F5E #5D2F8C #7C3EBA #9B68CD #B996DC

Accessibility & contrast

On white

6.45
#7C3EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7C3EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3EBA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3EBA#FFFFFF#000000##FFFFFF
##7C3EBA1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0C5EB7
Tritanopia (blue-blind)
#705A77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c3eba;
/* rgb */ color: rgb(124, 62, 186);
/* oklch */ color: oklch(50.5% 0.187 303.2);
Tailwind
colors: {
  custom: {
    50: '#a777cf',
    500: '#7c3eba',
    950: '#000000',
  },
}
SCSS
$custom: #7c3eba;
$custom-light: #a777cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3eba",
  "rgb": {
    "r": 124,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5051,
    "c": 0.18743,
    "h": 303.2
  },
  "luminance": 0.11276
}

Semantic roles & 50–950 ramp

primary
#7C3EBA
secondary
#AAC88C
accent
#DA4E94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7C3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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