#7E337D#7E337D

#7E337D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.4% C 0.141 H 328.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7E337D
RGBrgb(126, 51, 125)
HSLhsl(301, 42%, 35%)
HSVhsv(301, 60%, 49%)
CMYKcmyk(0%, 59.5%, 0.8%, 50.6%)
CIE-LABlab(34.57, 42.84, -27.04)
CIE-LCHlch(34.57, 50.66, 327.74°)
OKLaboklab(45.4% 0.1197 -0.0744)
OKLCHoklch(45.4% 0.141 328.1)
XYZxyz(13.4895, 8.2848, 20.2867)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E337D #337E34
analogous
#5A337E #7E337D #7E3358
triadic
#7E337D #7D7E33 #337D7E
tetradic
#7E337D #7E5A33 #337E34 #33587E
square
#7E337D #7E5A33 #337E34 #33587E
split-complementary
#7E337D #587E33 #337E5A
monochromatic
#271027 #522152 #7E337D #AA45A8 #C269C1

Accessibility & contrast

On white

7.90
#7E337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E337D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E337D#FFFFFF#000000##FFFFFF
##7E337D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#823C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e337d;
/* rgb */ color: rgb(126, 51, 125);
/* oklch */ color: oklch(45.4% 0.141 328.1);
Tailwind
colors: {
  custom: {
    50: '#a66fa3',
    500: '#7e337d',
    950: '#000000',
  },
}
SCSS
$custom: #7e337d;
$custom-light: #a66fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e337d",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 300.8,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45397,
    "c": 0.14092,
    "h": 328.1
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#7E337D
secondary
#63AA64
accent
#D25756
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E337D

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

Preview Lab → · Contrast checker → · Palette generator →

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