#7E37C2#7E37C2

#7E37C2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.5% C 0.205 H 303.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7E37C2
RGBrgb(126, 55, 194)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 72%, 76%)
CMYKcmyk(35.1%, 71.6%, 0%, 23.9%)
CIE-LABlab(39.69, 55.90, -60.45)
CIE-LCHlch(39.69, 82.33, 312.76°)
OKLaboklab(50.5% 0.1116 -0.1721)
OKLCHoklch(50.5% 0.205 303)
XYZxyz(19.7057, 11.0630, 52.1257)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37C2 #7BC237
analogous
#3837C2 #7E37C2 #C237C1
triadic
#7E37C2 #C27E37 #37C27E
tetradic
#7E37C2 #C23837 #7BC237 #37C1C2
square
#7E37C2 #C23837 #7BC237 #37C1C2
split-complementary
#7E37C2 #C1C237 #37C238
monochromatic
#401C63 #5F2992 #7E37C2 #9C63D3 #BB93E0

Accessibility & contrast

On white

6.54
#7E37C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7E37C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37C2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37C2#FFFFFF#000000##FFFFFF
##7E37C21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#705979
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e37c2;
/* rgb */ color: rgb(126, 55, 194);
/* oklch */ color: oklch(50.5% 0.205 303.0);
Tailwind
colors: {
  custom: {
    50: '#a974d5',
    500: '#7e37c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e37c2;
$custom-light: #a974d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37c2",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 270.647,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50496,
    "c": 0.20515,
    "h": 303
  },
  "luminance": 0.11063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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