#7E37C1#7E37C1

#7E37C1 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.204 H 303.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7E37C1
RGBrgb(126, 55, 193)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 72%, 76%)
CMYKcmyk(34.7%, 71.5%, 0%, 24.3%)
CIE-LABlab(39.61, 55.66, -59.98)
CIE-LCHlch(39.61, 81.83, 312.86°)
OKLaboklab(50.42% 0.1118 -0.1708)
OKLCHoklch(50.42% 0.204 303.2)
XYZxyz(19.5938, 11.0183, 51.5362)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37C1 #7AC137
analogous
#3937C1 #7E37C1 #C137BF
triadic
#7E37C1 #C17E37 #37C17E
tetradic
#7E37C1 #C13937 #7AC137 #37BFC1
square
#7E37C1 #C13937 #7AC137 #37BFC1
split-complementary
#7E37C1 #BFC137 #37C139
monochromatic
#401C62 #5F2991 #7E37C1 #9C63D2 #BA92E0

Accessibility & contrast

On white

6.56
#7E37C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7E37C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37C1
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37C1#FFFFFF#000000##FFFFFF
##7E37C11.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#715878
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e37c1;
/* rgb */ color: rgb(126, 55, 193);
/* oklch */ color: oklch(50.4% 0.204 303.2);
Tailwind
colors: {
  custom: {
    50: '#a974d5',
    500: '#7e37c1',
    950: '#000000',
  },
}
SCSS
$custom: #7e37c1;
$custom-light: #a974d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37c1",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 270.87,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50419,
    "c": 0.2041,
    "h": 303.2
  },
  "luminance": 0.11018
}

Semantic roles & 50–950 ramp

primary
#7E37C1
secondary
#A9CB89
accent
#DF4992
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E37C1

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

Preview Lab → · Contrast checker → · Palette generator →

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