#7E37A3#7E37A3

#7E37A3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.173 H 311.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7E37A3
RGBrgb(126, 55, 163)
HSLhsl(279, 50%, 43%)
HSVhsv(279, 66%, 64%)
CMYKcmyk(22.7%, 66.3%, 0%, 36.1%)
CIE-LABlab(37.50, 48.75, -45.62)
CIE-LCHlch(37.50, 66.76, 316.90°)
OKLaboklab(48.25% 0.1154 -0.1286)
OKLCHoklch(48.25% 0.173 311.9)
XYZxyz(16.5800, 9.8128, 35.6639)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37A3 #5CA337
analogous
#4837A3 #7E37A3 #A33792
triadic
#7E37A3 #A37E37 #37A37E
tetradic
#7E37A3 #A34837 #5CA337 #3792A3
square
#7E37A3 #A34837 #5CA337 #3792A3
split-complementary
#7E37A3 #92A337 #37A348
monochromatic
#371847 #5B2875 #7E37A3 #9E52C5 #B780D4

Accessibility & contrast

On white

7.09
#7E37A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E37A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E37A3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37A3#FFFFFF#000000##FFFFFF
##7E37A31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A6
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#7A4D68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e37a3;
/* rgb */ color: rgb(126, 55, 163);
/* oklch */ color: oklch(48.2% 0.173 311.9);
Tailwind
colors: {
  custom: {
    50: '#a773bf',
    500: '#7e37a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e37a3;
$custom-light: #a773bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37a3",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 279.444,
    "s": 49.541,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48246,
    "c": 0.17276,
    "h": 311.9
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#7E37A3
secondary
#90BE78
accent
#D94F7E
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E37A3

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

Preview Lab → · Contrast checker → · Palette generator →

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