#7E4FBB#7E4FBB

#7E4FBB is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.165 H 301.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7E4FBB
RGBrgb(126, 79, 187)
HSLhsl(266, 44%, 52%)
HSVhsv(266, 58%, 73%)
CMYKcmyk(32.6%, 57.8%, 0%, 26.7%)
CIE-LABlab(43.68, 41.98, -49.91)
CIE-LCHlch(43.68, 65.22, 310.07°)
OKLaboklab(53.22% 0.085 -0.1413)
OKLCHoklch(53.22% 0.165 301)
XYZxyz(20.3677, 13.6153, 48.5591)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FBB #8CBB4F
analogous
#4F56BB #7E4FBB #B44FBB
triadic
#7E4FBB #BB7E4F #4FBB7E
tetradic
#7E4FBB #BB4F56 #8CBB4F #4FBBB4
square
#7E4FBB #BB4F56 #8CBB4F #4FBBB4
split-complementary
#7E4FBB #BBB44F #56BB4F
monochromatic
#442868 #613994 #7E4FBB #9E7BCC #BFA7DD

Accessibility & contrast

On white

5.64
#7E4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E4FBB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FBB#FFFFFF#000000##FFFFFF
##7E4FBB1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67BF
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#72657D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4fbb;
/* rgb */ color: rgb(126, 79, 187);
/* oklch */ color: oklch(53.2% 0.165 301.0);
Tailwind
colors: {
  custom: {
    50: '#a782d0',
    500: '#7e4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fbb;
$custom-light: #a782d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fbb",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 266.111,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53223,
    "c": 0.16489,
    "h": 301
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#7E4FBB
secondary
#B6CA9B
accent
#D4549C
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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