#7E3BCC#7E3BCC

#7E3BCC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.211 H 300.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7E3BCC
RGBrgb(126, 59, 204)
HSLhsl(268, 59%, 52%)
HSVhsv(268, 71%, 80%)
CMYKcmyk(38.2%, 71.1%, 0%, 20%)
CIE-LABlab(41.09, 56.49, -63.97)
CIE-LCHlch(41.09, 85.34, 311.44°)
OKLaboklab(51.73% 0.1059 -0.1825)
OKLCHoklch(51.73% 0.211 300.1)
XYZxyz(21.0645, 11.9230, 58.3066)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BCC #89CC3B
analogous
#3B41CC #7E3BCC #C63BCC
triadic
#7E3BCC #CC7E3B #3BCC7E
tetradic
#7E3BCC #CC3B41 #89CC3B #3BCCC6
square
#7E3BCC #CC3B41 #89CC3B #3BCCC6
split-complementary
#7E3BCC #CCC63B #41CC3B
monochromatic
#431D70 #602AA0 #7E3BCC #9E6CD9 #BE9CE5

Accessibility & contrast

On white

6.20
#7E3BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E3BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BCC
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BCC#FFFFFF#000000##FFFFFF
##7E3BCC1.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#6C5F80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3bcc;
/* rgb */ color: rgb(126, 59, 204);
/* oklch */ color: oklch(51.7% 0.211 300.1);
Tailwind
colors: {
  custom: {
    50: '#aa77dc',
    500: '#7e3bcc',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bcc;
$custom-light: #aa77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bcc",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 204
  },
  "hsl": {
    "h": 267.724,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51732,
    "c": 0.21102,
    "h": 300.1
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#7E3BCC
secondary
#B4D192
accent
#E2469A
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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