#7E337F#7E337F

#7E337F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.5% C 0.143 H 327.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7E337F
RGBrgb(126, 51, 127)
HSLhsl(299, 43%, 35%)
HSVhsv(299, 60%, 50%)
CMYKcmyk(0.8%, 59.8%, 0%, 50.2%)
CIE-LABlab(34.67, 43.22, -28.12)
CIE-LCHlch(34.67, 51.56, 326.95°)
OKLaboklab(45.51% 0.1199 -0.0776)
OKLCHoklch(45.51% 0.143 327.1)
XYZxyz(13.6185, 8.3364, 20.9663)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E337F #347F33
analogous
#58337F #7E337F #7F335A
triadic
#7E337F #7F7E33 #337F7E
tetradic
#7E337F #7F5833 #347F33 #335A7F
square
#7E337F #7F5833 #347F33 #335A7F
split-complementary
#7E337F #5A7F33 #337F58
monochromatic
#271028 #532153 #7E337F #A945AB #C269C3

Accessibility & contrast

On white

7.87
#7E337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E337F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E337F#FFFFFF#000000##FFFFFF
##7E337F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#823C54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e337f;
/* rgb */ color: rgb(126, 51, 127);
/* oklch */ color: oklch(45.5% 0.143 327.1);
Tailwind
colors: {
  custom: {
    50: '#a66fa4',
    500: '#7e337f',
    950: '#000000',
  },
}
SCSS
$custom: #7e337f;
$custom-light: #a66fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e337f",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 299.211,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45507,
    "c": 0.14277,
    "h": 327.1
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#7E337F
secondary
#64AB63
accent
#D25557
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E337F

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

Preview Lab → · Contrast checker → · Palette generator →

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