#7E37B8#7E37B8

#7E37B8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.195 H 305.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7E37B8
RGBrgb(126, 55, 184)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 72%)
CMYKcmyk(31.5%, 70.1%, 0%, 27.8%)
CIE-LABlab(38.95, 53.55, -55.78)
CIE-LCHlch(38.95, 77.32, 313.83°)
OKLaboklab(49.74% 0.1132 -0.1584)
OKLCHoklch(49.74% 0.195 305.6)
XYZxyz(18.6202, 10.6288, 46.4087)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37B8 #71B837
analogous
#3D37B8 #7E37B8 #B837B2
triadic
#7E37B8 #B87E37 #37B87E
tetradic
#7E37B8 #B83D37 #71B837 #37B2B8
square
#7E37B8 #B83D37 #71B837 #37B2B8
split-complementary
#7E37B8 #B2B837 #37B83D
monochromatic
#3D1B5A #5E2989 #7E37B8 #9C5DCF #B98DDD

Accessibility & contrast

On white

6.72
#7E37B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E37B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37B8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37B8#FFFFFF#000000##FFFFFF
##7E37B81.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#015CB5
Tritanopia (blue-blind)
#745574
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e37b8;
/* rgb */ color: rgb(126, 55, 184);
/* oklch */ color: oklch(49.7% 0.195 305.6);
Tailwind
colors: {
  custom: {
    50: '#a874ce',
    500: '#7e37b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e37b8;
$custom-light: #a874ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37b8",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 273.023,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49739,
    "c": 0.19471,
    "h": 305.6
  },
  "luminance": 0.10629
}

Semantic roles & 50–950 ramp

primary
#7E37B8
secondary
#A2C784
accent
#DD4A8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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