#7E4BC2#7E4BC2

#7E4BC2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.179 H 300.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7E4BC2
RGBrgb(126, 75, 194)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(35.1%, 61.3%, 0%, 23.9%)
CIE-LABlab(43.30, 45.95, -54.59)
CIE-LCHlch(43.30, 71.36, 310.09°)
OKLaboklab(53.1% 0.0898 -0.155)
OKLCHoklch(53.1% 0.179 300.1)
XYZxyz(20.8555, 13.3627, 52.5090)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BC2 #8FC24B
analogous
#4B53C2 #7E4BC2 #B94BC2
triadic
#7E4BC2 #C27E4B #4BC27E
tetradic
#7E4BC2 #C24B53 #8FC24B #4BC2B9
square
#7E4BC2 #C24B53 #8FC24B #4BC2B9
split-complementary
#7E4BC2 #C2B94B #53C24B
monochromatic
#44256D #61359B #7E4BC2 #9F79D1 #C0A6E1

Accessibility & contrast

On white

5.72
#7E4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7E4BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BC2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BC2#FFFFFF#000000##FFFFFF
##7E4BC21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2065BF
Tritanopia (blue-blind)
#6F647F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4bc2;
/* rgb */ color: rgb(126, 75, 194);
/* oklch */ color: oklch(53.1% 0.179 300.1);
Tailwind
colors: {
  custom: {
    50: '#a880d5',
    500: '#7e4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bc2;
$custom-light: #a880d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bc2",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 265.714,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53096,
    "c": 0.17912,
    "h": 300.1
  },
  "luminance": 0.13363
}

Semantic roles & 50–950 ramp

primary
#7E4BC2
secondary
#B8CE9B
accent
#D94F9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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