#7E37B2#7E37B2

#7E37B2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.188 H 307.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7E37B2
RGBrgb(126, 55, 178)
HSLhsl(275, 53%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(29.2%, 69.1%, 0%, 30.2%)
CIE-LABlab(38.52, 52.15, -52.92)
CIE-LCHlch(38.52, 74.30, 314.58°)
OKLaboklab(49.3% 0.114 -0.15)
OKLCHoklch(49.3% 0.188 307.2)
XYZxyz(18.0046, 10.3826, 43.1664)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37B2 #6BB237
analogous
#4037B2 #7E37B2 #B237A8
triadic
#7E37B2 #B27E37 #37B27E
tetradic
#7E37B2 #B24037 #6BB237 #37A8B2
square
#7E37B2 #B24037 #6BB237 #37A8B2
split-complementary
#7E37B2 #A8B237 #37B240
monochromatic
#3C1A54 #5D2983 #7E37B2 #9C5ACC #B889DB

Accessibility & contrast

On white

6.83
#7E37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E37B2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37B2#FFFFFF#000000##FFFFFF
##7E37B21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#165BAF
Tritanopia (blue-blind)
#755270
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e37b2;
/* rgb */ color: rgb(126, 55, 178);
/* oklch */ color: oklch(49.3% 0.188 307.2);
Tailwind
colors: {
  custom: {
    50: '#a873ca',
    500: '#7e37b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e37b2;
$custom-light: #a873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37b2",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 274.634,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.18844,
    "h": 307.2
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#7E37B2
secondary
#9DC580
accent
#DC4C89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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