#7E3DBB#7E3DBB

#7E3DBB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.190 H 304.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7E3DBB
RGBrgb(126, 61, 187)
HSLhsl(271, 51%, 49%)
HSVhsv(271, 67%, 73%)
CMYKcmyk(32.6%, 67.4%, 0%, 26.7%)
CIE-LABlab(40.18, 51.42, -55.54)
CIE-LCHlch(40.18, 75.69, 312.79°)
OKLaboklab(50.69% 0.1064 -0.1578)
OKLCHoklch(50.69% 0.19 304)
XYZxyz(19.2405, 11.3610, 48.1833)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DBB #7ABB3D
analogous
#3F3DBB #7E3DBB #BB3DB9
triadic
#7E3DBB #BB7E3D #3DBB7E
tetradic
#7E3DBB #BB3F3D #7ABB3D #3DB9BB
square
#7E3DBB #BB3F3D #7ABB3D #3DB9BB
split-complementary
#7E3DBB #B9BB3D #3DBB3F
monochromatic
#401F5F #5F2E8D #7E3DBB #9C68CE #BA96DD

Accessibility & contrast

On white

6.42
#7E3DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E3DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3DBB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DBB#FFFFFF#000000##FFFFFF
##7E3DBB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0C5FB8
Tritanopia (blue-blind)
#725977
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3dbb;
/* rgb */ color: rgb(126, 61, 187);
/* oklch */ color: oklch(50.7% 0.190 304.0);
Tailwind
colors: {
  custom: {
    50: '#a877d0',
    500: '#7e3dbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dbb;
$custom-light: #a877d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dbb",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 270.952,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50689,
    "c": 0.19028,
    "h": 304
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#7E3DBB
secondary
#A9C88C
accent
#DA4E92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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