#7E37A2#7E37A2

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

Color values

HEX#7E37A2
RGBrgb(126, 55, 162)
HSLhsl(280, 49%, 43%)
HSVhsv(280, 66%, 64%)
CMYKcmyk(22.2%, 66%, 0%, 36.5%)
CIE-LABlab(37.44, 48.53, -45.12)
CIE-LCHlch(37.44, 66.26, 317.09°)
OKLaboklab(48.18% 0.1155 -0.1271)
OKLCHoklch(48.18% 0.172 312.2)
XYZxyz(16.4908, 9.7771, 35.1939)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E37A2 #5BA237
analogous
#4837A2 #7E37A2 #A23791
triadic
#7E37A2 #A27E37 #37A27E
tetradic
#7E37A2 #A24837 #5BA237 #3791A2
square
#7E37A2 #A24837 #5BA237 #3791A2
split-complementary
#7E37A2 #91A237 #37A248
monochromatic
#371847 #5A2774 #7E37A2 #9E52C4 #B780D4

Accessibility & contrast

On white

7.11
#7E37A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E37A2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E37A2#FFFFFF#000000##FFFFFF
##7E37A21.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#7A4C68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e37a2;
/* rgb */ color: rgb(126, 55, 162);
/* oklch */ color: oklch(48.2% 0.172 312.2);
Tailwind
colors: {
  custom: {
    50: '#a773be',
    500: '#7e37a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e37a2;
$custom-light: #a773be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e37a2",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 279.813,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.17172,
    "h": 312.2
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

primary
#7E37A2
secondary
#8FBD78
accent
#D94F7D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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