#7E4BC7#7E4BC7

#7E4BC7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.185 H 298.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7E4BC7
RGBrgb(126, 75, 199)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(36.7%, 62.3%, 0%, 22%)
CIE-LABlab(43.64, 47.23, -56.95)
CIE-LCHlch(43.64, 73.99, 309.67°)
OKLaboklab(53.45% 0.0895 -0.1619)
OKLCHoklch(53.45% 0.185 298.9)
XYZxyz(21.4265, 13.5911, 55.5162)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BC7 #94C74B
analogous
#4B56C7 #7E4BC7 #BC4BC7
triadic
#7E4BC7 #C77E4B #4BC77E
tetradic
#7E4BC7 #C74B56 #94C74B #4BC7BC
square
#7E4BC7 #C74B56 #94C74B #4BC7BC
split-complementary
#7E4BC7 #C7BC4B #56C74B
monochromatic
#452474 #6032A2 #7E4BC7 #9F7AD6 #C1A8E4

Accessibility & contrast

On white

5.65
#7E4BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7E4BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BC7
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BC7#FFFFFF#000000##FFFFFF
##7E4BC71.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#1466C4
Tritanopia (blue-blind)
#6E6682
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4bc7;
/* rgb */ color: rgb(126, 75, 199);
/* oklch */ color: oklch(53.4% 0.185 298.9);
Tailwind
colors: {
  custom: {
    50: '#a880d9',
    500: '#7e4bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bc7;
$custom-light: #a880d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bc7",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 264.677,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.18502,
    "h": 298.9
  },
  "luminance": 0.13591
}

Semantic roles & 50–950 ramp

primary
#7E4BC7
secondary
#BCD19C
accent
#DC4CA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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