#7E37C4#7E37C4

#7E37C4 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.7% C 0.207 H 302.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7E37C4
RGBrgb(126, 55, 196)
HSLhsl(270, 56%, 49%)
HSVhsv(270, 72%, 77%)
CMYKcmyk(35.7%, 71.9%, 0%, 23.1%)
CIE-LABlab(39.84, 56.38, -61.37)
CIE-LCHlch(39.84, 83.33, 312.57°)
OKLaboklab(50.65% 0.1112 -0.1748)
OKLCHoklch(50.65% 0.207 302.5)
XYZxyz(19.9318, 11.1535, 53.3166)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37C4 #7DC437
analogous
#3837C4 #7E37C4 #C437C4
triadic
#7E37C4 #C47E37 #37C47E
tetradic
#7E37C4 #C43837 #7DC437 #37C4C4
square
#7E37C4 #C43837 #7DC437 #37C4C4
split-complementary
#7E37C4 #C4C437 #37C438
monochromatic
#411C64 #5F2A94 #7E37C4 #9C65D4 #BB94E1

Accessibility & contrast

On white

6.50
#7E37C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7E37C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37C4
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37C4#FFFFFF#000000##FFFFFF
##7E37C41.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#6F597A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e37c4;
/* rgb */ color: rgb(126, 55, 196);
/* oklch */ color: oklch(50.7% 0.207 302.5);
Tailwind
colors: {
  custom: {
    50: '#a974d7',
    500: '#7e37c4',
    950: '#000000',
  },
}
SCSS
$custom: #7e37c4;
$custom-light: #a974d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37c4",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 270.213,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50651,
    "c": 0.20723,
    "h": 302.5
  },
  "luminance": 0.11154
}

Semantic roles & 50–950 ramp

primary
#7E37C4
secondary
#ABCC8B
accent
#DF4893
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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