#7E37AB#7E37AB

#7E37AB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.181 H 309.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7E37AB
RGBrgb(126, 55, 171)
HSLhsl(277, 51%, 44%)
HSVhsv(277, 68%, 67%)
CMYKcmyk(26.3%, 67.8%, 0%, 32.9%)
CIE-LABlab(38.04, 50.55, -49.54)
CIE-LCHlch(38.04, 70.78, 315.58°)
OKLaboklab(48.8% 0.1148 -0.1401)
OKLCHoklch(48.8% 0.181 309.3)
XYZxyz(17.3196, 10.1086, 39.5589)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37AB #64AB37
analogous
#4437AB #7E37AB #AB379E
triadic
#7E37AB #AB7E37 #37AB7E
tetradic
#7E37AB #AB4437 #64AB37 #379EAB
square
#7E37AB #AB4437 #64AB37 #379EAB
split-complementary
#7E37AB #9EAB37 #37AB44
monochromatic
#3A194E #5C287D #7E37AB #9C56C9 #B785D8

Accessibility & contrast

On white

6.95
#7E37AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7E37AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37AB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37AB#FFFFFF#000000##FFFFFF
##7E37AB1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#235BA8
Tritanopia (blue-blind)
#78506C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e37ab;
/* rgb */ color: rgb(126, 55, 171);
/* oklch */ color: oklch(48.8% 0.181 309.3);
Tailwind
colors: {
  custom: {
    50: '#a773c5',
    500: '#7e37ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e37ab;
$custom-light: #a773c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37ab",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 276.724,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48798,
    "c": 0.18111,
    "h": 309.3
  },
  "luminance": 0.10108
}

Semantic roles & 50–950 ramp

primary
#7E37AB
secondary
#97C17C
accent
#DB4D84
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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