#7E4FBD#7E4FBD

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

Color values

HEX#7E4FBD
RGBrgb(126, 79, 189)
HSLhsl(266, 45%, 53%)
HSVhsv(266, 58%, 74%)
CMYKcmyk(33.3%, 58.2%, 0%, 25.9%)
CIE-LABlab(43.80, 42.49, -50.88)
CIE-LCHlch(43.80, 66.29, 309.87°)
OKLaboklab(53.36% 0.085 -0.1441)
OKLCHoklch(53.36% 0.167 300.5)
XYZxyz(20.5833, 13.7016, 49.6945)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FBD #8EBD4F
analogous
#4F57BD #7E4FBD #B54FBD
triadic
#7E4FBD #BD7E4F #4FBD7E
tetradic
#7E4FBD #BD4F57 #8EBD4F #4FBDB5
square
#7E4FBD #BD4F57 #8EBD4F #4FBDB5
split-complementary
#7E4FBD #BDB54F #57BD4F
monochromatic
#44286A #613896 #7E4FBD #9F7CCE #BFA8DE

Accessibility & contrast

On white

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

On black

3.74
#7E4FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E4FBD#FFFFFF#000000##FFFFFF
##7E4FBD1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1967C1
Deuteranopia (green-blind)
#2F67BA
Tritanopia (blue-blind)
#71667E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4fbd;
/* rgb */ color: rgb(126, 79, 189);
/* oklch */ color: oklch(53.4% 0.167 300.5);
Tailwind
colors: {
  custom: {
    50: '#a782d1',
    500: '#7e4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fbd;
$custom-light: #a782d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fbd",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 265.636,
    "s": 45.455,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53355,
    "c": 0.16732,
    "h": 300.5
  },
  "luminance": 0.13702
}

Semantic roles & 50–950 ramp

primary
#7E4FBD
secondary
#B7CC9C
accent
#D5539D
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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