#7E339C#7E339C

#7E339C is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.171 H 314.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7E339C
RGBrgb(126, 51, 156)
HSLhsl(283, 51%, 41%)
HSVhsv(283, 67%, 61%)
CMYKcmyk(19.2%, 67.3%, 0%, 38.8%)
CIE-LABlab(36.37, 49.10, -43.21)
CIE-LCHlch(36.37, 65.41, 318.65°)
OKLaboklab(47.29% 0.1205 -0.1215)
OKLCHoklch(47.29% 0.171 314.8)
XYZxyz(15.7878, 9.2041, 32.3910)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339C #519C33
analogous
#49339C #7E339C #9C3385
triadic
#7E339C #9C7E33 #339C7E
tetradic
#7E339C #9C4933 #519C33 #33859C
square
#7E339C #9C4933 #519C33 #33859C
split-complementary
#7E339C #859C33 #339C49
monochromatic
#331540 #59246E #7E339C #A049C3 #B877D3

Accessibility & contrast

On white

7.39
#7E339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E339C
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339C#FFFFFF#000000##FFFFFF
##7E339C1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#30589A
Tritanopia (blue-blind)
#7C4763
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e339c;
/* rgb */ color: rgb(126, 51, 156);
/* oklch */ color: oklch(47.3% 0.171 314.8);
Tailwind
colors: {
  custom: {
    50: '#a770ba',
    500: '#7e339c',
    950: '#000000',
  },
}
SCSS
$custom: #7e339c;
$custom-light: #a770ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339c",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 282.857,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47288,
    "c": 0.17112,
    "h": 314.8
  },
  "luminance": 0.09204
}

Semantic roles & 50–950 ramp

primary
#7E339C
secondary
#85BB70
accent
#DA4E76
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E339C

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

Preview Lab → · Contrast checker → · Palette generator →

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