#7E337A#7E337A

#7E337A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.2% C 0.138 H 329.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7E337A
RGBrgb(126, 51, 122)
HSLhsl(303, 42%, 35%)
HSVhsv(303, 60%, 49%)
CMYKcmyk(0%, 59.5%, 3.2%, 50.6%)
CIE-LABlab(34.41, 42.28, -25.41)
CIE-LCHlch(34.41, 49.33, 328.99°)
OKLaboklab(45.23% 0.1193 -0.0698)
OKLCHoklch(45.23% 0.138 329.7)
XYZxyz(13.3007, 8.2093, 19.2926)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E337A #337E37
analogous
#5D337E #7E337A #7E3355
triadic
#7E337A #7A7E33 #337A7E
tetradic
#7E337A #7E5D33 #337E37 #33557E
square
#7E337A #7E5D33 #337E37 #33557E
split-complementary
#7E337A #557E33 #337E5D
monochromatic
#271026 #522150 #7E337A #AA45A4 #C269BE

Accessibility & contrast

On white

7.95
#7E337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E337A
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E337A#FFFFFF#000000##FFFFFF
##7E337A1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7C
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#823B51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e337a;
/* rgb */ color: rgb(126, 51, 122);
/* oklch */ color: oklch(45.2% 0.138 329.7);
Tailwind
colors: {
  custom: {
    50: '#a66fa0',
    500: '#7e337a',
    950: '#000000',
  },
}
SCSS
$custom: #7e337a;
$custom-light: #a66fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e337a",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 303.2,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45234,
    "c": 0.13818,
    "h": 329.7
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#7E337A
secondary
#63AA66
accent
#D25C56
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10080F
muted
#7F7B7E

Preview Lab

Preview with #7E337A

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

Preview Lab → · Contrast checker → · Palette generator →

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