#7E4BC0#7E4BC0

#7E4BC0 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.0% C 0.177 H 300.6°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7E4BC0
RGBrgb(126, 75, 192)
HSLhsl(266, 48%, 52%)
HSVhsv(266, 61%, 75%)
CMYKcmyk(34.4%, 60.9%, 0%, 24.7%)
CIE-LABlab(43.17, 45.44, -53.64)
CIE-LCHlch(43.17, 70.30, 310.27°)
OKLaboklab(52.96% 0.0899 -0.1522)
OKLCHoklch(52.96% 0.177 300.6)
XYZxyz(20.6324, 13.2734, 51.3340)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BC0 #8DC04B
analogous
#4B53C0 #7E4BC0 #B94BC0
triadic
#7E4BC0 #C07E4B #4BC07E
tetradic
#7E4BC0 #C04B53 #8DC04B #4BC0B9
square
#7E4BC0 #C04B53 #8DC04B #4BC0B9
split-complementary
#7E4BC0 #C0B94B #53C04B
monochromatic
#44256B #613598 #7E4BC0 #9E78D0 #BFA6E0

Accessibility & contrast

On white

5.75
#7E4BC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7E4BC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BC0
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BC0#FFFFFF#000000##FFFFFF
##7E4BC01.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#2365BD
Tritanopia (blue-blind)
#70647E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4bc0;
/* rgb */ color: rgb(126, 75, 192);
/* oklch */ color: oklch(53.0% 0.177 300.6);
Tailwind
colors: {
  custom: {
    50: '#a880d4',
    500: '#7e4bc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bc0;
$custom-light: #a880d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bc0",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 192
  },
  "hsl": {
    "h": 266.154,
    "s": 48.148,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52957,
    "c": 0.17676,
    "h": 300.6
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#7E4BC0
secondary
#B7CD9A
accent
#D8509D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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