#7E37B7#7E37B7

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

Color values

HEX#7E37B7
RGBrgb(126, 55, 183)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 72%)
CMYKcmyk(31.1%, 69.9%, 0%, 28.2%)
CIE-LABlab(38.88, 53.31, -55.30)
CIE-LCHlch(38.88, 76.82, 313.95°)
OKLaboklab(49.67% 0.1134 -0.157)
OKLCHoklch(49.67% 0.194 305.8)
XYZxyz(18.5157, 10.5870, 45.8586)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37B7 #70B737
analogous
#3E37B7 #7E37B7 #B737B0
triadic
#7E37B7 #B77E37 #37B77E
tetradic
#7E37B7 #B73E37 #70B737 #37B0B7
square
#7E37B7 #B73E37 #70B737 #37B0B7
split-complementary
#7E37B7 #B0B737 #37B73E
monochromatic
#3D1B59 #5E2988 #7E37B7 #9C5DCE #B98CDC

Accessibility & contrast

On white

6.74
#7E37B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7E37B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37B7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37B7#FFFFFF#000000##FFFFFF
##7E37B71.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#055CB4
Tritanopia (blue-blind)
#745473
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e37b7;
/* rgb */ color: rgb(126, 55, 183);
/* oklch */ color: oklch(49.7% 0.194 305.8);
Tailwind
colors: {
  custom: {
    50: '#a874cd',
    500: '#7e37b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e37b7;
$custom-light: #a874cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37b7",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 273.281,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49665,
    "c": 0.19366,
    "h": 305.8
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#7E37B7
secondary
#A1C783
accent
#DD4B8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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