#7E37BC#7E37BC

#7E37BC is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.199 H 304.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7E37BC
RGBrgb(126, 55, 188)
HSLhsl(272, 55%, 48%)
HSVhsv(272, 71%, 74%)
CMYKcmyk(33%, 70.7%, 0%, 26.3%)
CIE-LABlab(39.24, 54.48, -57.66)
CIE-LCHlch(39.24, 79.33, 313.38°)
OKLaboklab(50.04% 0.1126 -0.1639)
OKLCHoklch(50.04% 0.199 304.5)
XYZxyz(19.0454, 10.7989, 48.6482)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37BC #75BC37
analogous
#3B37BC #7E37BC #BC37B8
triadic
#7E37BC #BC7E37 #37BC7E
tetradic
#7E37BC #BC3B37 #75BC37 #37B8BC
square
#7E37BC #BC3B37 #75BC37 #37B8BC
split-complementary
#7E37BC #B8BC37 #37BC3B
monochromatic
#3F1B5D #5E298D #7E37BC #9C60D0 #B98FDE

Accessibility & contrast

On white

6.65
#7E37BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E37BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37BC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37BC#FFFFFF#000000##FFFFFF
##7E37BC1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#725676
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e37bc;
/* rgb */ color: rgb(126, 55, 188);
/* oklch */ color: oklch(50.0% 0.199 304.5);
Tailwind
colors: {
  custom: {
    50: '#a874d1',
    500: '#7e37bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e37bc;
$custom-light: #a874d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37bc",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 272.03,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50038,
    "c": 0.19889,
    "h": 304.5
  },
  "luminance": 0.10799
}

Semantic roles & 50–950 ramp

primary
#7E37BC
secondary
#A5C986
accent
#DE4A8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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