#7E37BA#7E37BA

#7E37BA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.9% C 0.197 H 305.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7E37BA
RGBrgb(126, 55, 186)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(32.3%, 70.4%, 0%, 27.1%)
CIE-LABlab(39.09, 54.01, -56.72)
CIE-LCHlch(39.09, 78.32, 313.60°)
OKLaboklab(49.89% 0.1129 -0.1612)
OKLCHoklch(49.89% 0.197 305)
XYZxyz(18.8313, 10.7133, 47.5207)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37BA #73BA37
analogous
#3C37BA #7E37BA #BA37B5
triadic
#7E37BA #BA7E37 #37BA7E
tetradic
#7E37BA #BA3C37 #73BA37 #37B5BA
square
#7E37BA #BA3C37 #73BA37 #37B5BA
split-complementary
#7E37BA #B5BA37 #37BA3C
monochromatic
#3E1B5C #5E298B #7E37BA #9C5FD0 #B98EDE

Accessibility & contrast

On white

6.68
#7E37BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7E37BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37BA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37BA#FFFFFF#000000##FFFFFF
##7E37BA1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#735575
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e37ba;
/* rgb */ color: rgb(126, 55, 186);
/* oklch */ color: oklch(49.9% 0.197 305.0);
Tailwind
colors: {
  custom: {
    50: '#a874d0',
    500: '#7e37ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e37ba;
$custom-light: #a874d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37ba",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 272.519,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.1968,
    "h": 305
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

primary
#7E37BA
secondary
#A4C885
accent
#DE4A8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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