#7E339E#7E339E

#7E339E is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.4% C 0.173 H 314.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7E339E
RGBrgb(126, 51, 158)
HSLhsl(282, 51%, 41%)
HSVhsv(282, 68%, 62%)
CMYKcmyk(20.3%, 67.7%, 0%, 38%)
CIE-LABlab(36.50, 49.53, -44.21)
CIE-LCHlch(36.50, 66.39, 318.25°)
OKLaboklab(47.42% 0.1204 -0.1244)
OKLCHoklch(47.42% 0.173 314.1)
XYZxyz(15.9585, 9.2724, 33.2902)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339E #539E33
analogous
#48339E #7E339E #9E3388
triadic
#7E339E #9E7E33 #339E7E
tetradic
#7E339E #9E4833 #539E33 #33889E
square
#7E339E #9E4833 #539E33 #33889E
split-complementary
#7E339E #889E33 #339E48
monochromatic
#341541 #592470 #7E339E #A04AC4 #B878D3

Accessibility & contrast

On white

7.36
#7E339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E339E
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339E#FFFFFF#000000##FFFFFF
##7E339E1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e339e;
/* rgb */ color: rgb(126, 51, 158);
/* oklch */ color: oklch(47.4% 0.173 314.1);
Tailwind
colors: {
  custom: {
    50: '#a770bb',
    500: '#7e339e',
    950: '#000000',
  },
}
SCSS
$custom: #7e339e;
$custom-light: #a770bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339e",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 282.056,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47422,
    "c": 0.17314,
    "h": 314.1
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#7E339E
secondary
#87BC71
accent
#DB4D77
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E339E

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

Preview Lab → · Contrast checker → · Palette generator →

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