#7E3BB3#7E3BB3

#7E3BB3 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.9% C 0.184 H 306.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7E3BB3
RGBrgb(126, 59, 179)
HSLhsl(274, 50%, 47%)
HSVhsv(274, 67%, 70%)
CMYKcmyk(29.6%, 67%, 0%, 29.8%)
CIE-LABlab(39.27, 50.49, -52.30)
CIE-LCHlch(39.27, 72.69, 313.99°)
OKLaboklab(49.86% 0.1095 -0.1482)
OKLCHoklch(49.86% 0.184 306.5)
XYZxyz(18.3031, 10.8184, 43.7630)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BB3 #70B33B
analogous
#423BB3 #7E3BB3 #B33BAC
triadic
#7E3BB3 #B37E3B #3BB37E
tetradic
#7E3BB3 #B3423B #70B33B #3BACB3
square
#7E3BB3 #B3423B #70B33B #3BACB3
split-complementary
#7E3BB3 #ACB33B #3BB342
monochromatic
#3D1D57 #5E2C85 #7E3BB3 #9C60CB #B98EDA

Accessibility & contrast

On white

6.64
#7E3BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E3BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BB3
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BB3#FFFFFF#000000##FFFFFF
##7E3BB31.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#1C5DB0
Tritanopia (blue-blind)
#755572
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e3bb3;
/* rgb */ color: rgb(126, 59, 179);
/* oklch */ color: oklch(49.9% 0.184 306.5);
Tailwind
colors: {
  custom: {
    50: '#a876ca',
    500: '#7e3bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bb3;
$custom-light: #a876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bb3",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 179
  },
  "hsl": {
    "h": 273.5,
    "s": 50.42,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.18426,
    "h": 306.5
  },
  "luminance": 0.10818
}

Semantic roles & 50–950 ramp

primary
#7E3BB3
secondary
#A1C585
accent
#DA4E8C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E3BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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