#7E3BC8#7E3BC8

#7E3BC8 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.207 H 301.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7E3BC8
RGBrgb(126, 59, 200)
HSLhsl(269, 56%, 51%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(37%, 70.5%, 0%, 21.6%)
CIE-LABlab(40.79, 55.51, -62.15)
CIE-LCHlch(40.79, 83.33, 311.77°)
OKLaboklab(51.42% 0.1066 -0.1772)
OKLCHoklch(51.42% 0.207 301)
XYZxyz(20.5909, 11.7335, 55.8124)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BC8 #85C83B
analogous
#3B3EC8 #7E3BC8 #C53BC8
triadic
#7E3BC8 #C87E3B #3BC87E
tetradic
#7E3BC8 #C83B3E #85C83B #3BC8C5
square
#7E3BC8 #C83B3E #85C83B #3BC8C5
split-complementary
#7E3BC8 #C8C53B #3EC83B
monochromatic
#421E6B #602B9A #7E3BC8 #9D6BD5 #BD9BE3

Accessibility & contrast

On white

6.27
#7E3BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7E3BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BC8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BC8#FFFFFF#000000##FFFFFF
##7E3BC81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#6E5D7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3bc8;
/* rgb */ color: rgb(126, 59, 200);
/* oklch */ color: oklch(51.4% 0.207 301.0);
Tailwind
colors: {
  custom: {
    50: '#a976da',
    500: '#7e3bc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bc8;
$custom-light: #a976da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bc8",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 200
  },
  "hsl": {
    "h": 268.511,
    "s": 56.175,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51421,
    "c": 0.20677,
    "h": 301
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#7E3BC8
secondary
#B1CF90
accent
#DF4898
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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