#7E3BC5#7E3BC5

#7E3BC5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.204 H 301.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7E3BC5
RGBrgb(126, 59, 197)
HSLhsl(269, 54%, 50%)
HSVhsv(269, 70%, 77%)
CMYKcmyk(36%, 70.1%, 0%, 22.7%)
CIE-LABlab(40.56, 54.79, -60.77)
CIE-LCHlch(40.56, 81.82, 312.04°)
OKLaboklab(51.19% 0.1071 -0.1731)
OKLCHoklch(51.19% 0.204 301.7)
XYZxyz(20.2438, 11.5947, 53.9840)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BC5 #82C53B
analogous
#3B3DC5 #7E3BC5 #C33BC5
triadic
#7E3BC5 #C57E3B #3BC57E
tetradic
#7E3BC5 #C53B3D #82C53B #3BC5C3
square
#7E3BC5 #C53B3D #82C53B #3BC5C3
split-complementary
#7E3BC5 #C5C33B #3DC53B
monochromatic
#421F67 #602C96 #7E3BC5 #9D6AD3 #BC99E1

Accessibility & contrast

On white

6.33
#7E3BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7E3BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BC5
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BC5#FFFFFF#000000##FFFFFF
##7E3BC51.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#6F5C7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3bc5;
/* rgb */ color: rgb(126, 59, 197);
/* oklch */ color: oklch(51.2% 0.204 301.7);
Tailwind
colors: {
  custom: {
    50: '#a976d7',
    500: '#7e3bc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bc5;
$custom-light: #a976d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bc5",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 197
  },
  "hsl": {
    "h": 269.13,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51191,
    "c": 0.20356,
    "h": 301.7
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

primary
#7E3BC5
secondary
#AFCD8F
accent
#DE4A96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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