#7E4BCA#7E4BCA

#7E4BCA is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.7% C 0.189 H 298.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7E4BCA
RGBrgb(126, 75, 202)
HSLhsl(264, 55%, 54%)
HSVhsv(264, 63%, 79%)
CMYKcmyk(37.6%, 62.9%, 0%, 20.8%)
CIE-LABlab(43.85, 48.00, -58.35)
CIE-LCHlch(43.85, 75.56, 309.44°)
OKLaboklab(53.66% 0.0893 -0.1661)
OKLCHoklch(53.66% 0.189 298.3)
XYZxyz(21.7782, 13.7318, 57.3688)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BCA #97CA4B
analogous
#4B58CA #7E4BCA #BD4BCA
triadic
#7E4BCA #CA7E4B #4BCA7E
tetradic
#7E4BCA #CA4B58 #97CA4B #4BCABD
square
#7E4BCA #CA4B58 #97CA4B #4BCABD
split-complementary
#7E4BCA #CABD4B #58CA4B
monochromatic
#452377 #6031A7 #7E4BCA #A07AD8 #C2AAE6

Accessibility & contrast

On white

5.61
#7E4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7E4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BCA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BCA#FFFFFF#000000##FFFFFF
##7E4BCA1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0866C7
Tritanopia (blue-blind)
#6C6784
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4bca;
/* rgb */ color: rgb(126, 75, 202);
/* oklch */ color: oklch(53.7% 0.189 298.3);
Tailwind
colors: {
  custom: {
    50: '#a880db',
    500: '#7e4bca',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bca;
$custom-light: #a880db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bca",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 264.094,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53661,
    "c": 0.18855,
    "h": 298.3
  },
  "luminance": 0.13732
}

Semantic roles & 50–950 ramp

primary
#7E4BCA
secondary
#BED39D
accent
#DE4AA2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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