#7E339D#7E339D

#7E339D is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.172 H 314.4°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7E339D
RGBrgb(126, 51, 157)
HSLhsl(282, 51%, 41%)
HSVhsv(282, 68%, 62%)
CMYKcmyk(19.7%, 67.5%, 0%, 38.4%)
CIE-LABlab(36.44, 49.31, -43.71)
CIE-LCHlch(36.44, 65.90, 318.45°)
OKLaboklab(47.36% 0.1205 -0.123)
OKLCHoklch(47.36% 0.172 314.4)
XYZxyz(15.8728, 9.2381, 32.8388)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339D #529D33
analogous
#49339D #7E339D #9D3387
triadic
#7E339D #9D7E33 #339D7E
tetradic
#7E339D #9D4933 #529D33 #33879D
square
#7E339D #9D4933 #529D33 #33879D
split-complementary
#7E339D #879D33 #339D49
monochromatic
#341541 #59246F #7E339D #A049C4 #B877D3

Accessibility & contrast

On white

7.37
#7E339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E339D
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339D#FFFFFF#000000##FFFFFF
##7E339D1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#2F589B
Tritanopia (blue-blind)
#7B4864
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e339d;
/* rgb */ color: rgb(126, 51, 157);
/* oklch */ color: oklch(47.4% 0.172 314.4);
Tailwind
colors: {
  custom: {
    50: '#a770ba',
    500: '#7e339d',
    950: '#000000',
  },
}
SCSS
$custom: #7e339d;
$custom-light: #a770ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339d",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 282.453,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47355,
    "c": 0.17213,
    "h": 314.4
  },
  "luminance": 0.09238
}

Semantic roles & 50–950 ramp

primary
#7E339D
secondary
#86BB70
accent
#DA4D77
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E339D

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

Preview Lab → · Contrast checker → · Palette generator →

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