#7E4BB2#7E4BB2

#7E4BB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.160 H 304.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7E4BB2
RGBrgb(126, 75, 178)
HSLhsl(270, 41%, 50%)
HSVhsv(270, 58%, 70%)
CMYKcmyk(29.2%, 57.9%, 0%, 30.2%)
CIE-LABlab(42.28, 41.93, -46.87)
CIE-LCHlch(42.28, 62.89, 311.82°)
OKLaboklab(52.02% 0.0901 -0.1323)
OKLCHoklch(52.02% 0.16 304.2)
XYZxyz(19.1544, 12.6822, 43.5497)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB2 #7FB24B
analogous
#4B4CB2 #7E4BB2 #B24BB2
triadic
#7E4BB2 #B27E4B #4BB27E
tetradic
#7E4BB2 #B24B4C #7FB24B #4BB2B2
square
#7E4BB2 #B24B4C #7FB24B #4BB2B2
split-complementary
#7E4BB2 #B2B24B #4CB24B
monochromatic
#41275C #603987 #7E4BB2 #9D75C5 #BBA0D7

Accessibility & contrast

On white

5.94
#7E4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7E4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB2#FFFFFF#000000##FFFFFF
##7E4BB21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#755F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4bb2;
/* rgb */ color: rgb(126, 75, 178);
/* oklch */ color: oklch(52.0% 0.160 304.2);
Tailwind
colors: {
  custom: {
    50: '#a77fca',
    500: '#7e4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb2;
$custom-light: #a77fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb2",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 269.709,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5202,
    "c": 0.16009,
    "h": 304.2
  },
  "luminance": 0.12682
}

Semantic roles & 50–950 ramp

primary
#7E4BB2
secondary
#ADC495
accent
#D15794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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