#7E339F#7E339F

#7E339F is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.174 H 313.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7E339F
RGBrgb(126, 51, 159)
HSLhsl(282, 51%, 41%)
HSVhsv(282, 68%, 62%)
CMYKcmyk(20.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(36.57, 49.75, -44.71)
CIE-LCHlch(36.57, 66.89, 318.05°)
OKLaboklab(47.49% 0.1203 -0.1259)
OKLCHoklch(47.49% 0.174 313.7)
XYZxyz(16.0449, 9.3070, 33.7454)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339F #549F33
analogous
#48339F #7E339F #9F338A
triadic
#7E339F #9F7E33 #339F7E
tetradic
#7E339F #9F4833 #549F33 #338A9F
square
#7E339F #9F4833 #549F33 #338A9F
split-complementary
#7E339F #8A9F33 #339F48
monochromatic
#351542 #592471 #7E339F #9F4AC5 #B879D4

Accessibility & contrast

On white

7.34
#7E339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E339F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339F#FFFFFF#000000##FFFFFF
##7E339F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#2D589D
Tritanopia (blue-blind)
#7B4865
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e339f;
/* rgb */ color: rgb(126, 51, 159);
/* oklch */ color: oklch(47.5% 0.174 313.7);
Tailwind
colors: {
  custom: {
    50: '#a770bc',
    500: '#7e339f',
    950: '#000000',
  },
}
SCSS
$custom: #7e339f;
$custom-light: #a770bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339f",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 281.667,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4749,
    "c": 0.17414,
    "h": 313.7
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#7E339F
secondary
#88BC71
accent
#DB4D78
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E339F

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

Preview Lab → · Contrast checker → · Palette generator →

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