#7E339A#7E339A

#7E339A is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.169 H 315.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E339A
RGBrgb(126, 51, 154)
HSLhsl(284, 50%, 40%)
HSVhsv(284, 67%, 60%)
CMYKcmyk(18.2%, 66.9%, 0%, 39.6%)
CIE-LABlab(36.25, 48.67, -42.20)
CIE-LCHlch(36.25, 64.42, 319.07°)
OKLaboklab(47.16% 0.1206 -0.1185)
OKLCHoklch(47.16% 0.169 315.5)
XYZxyz(15.6198, 9.1369, 31.5064)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E339A #4F9A33
analogous
#4A339A #7E339A #9A3383
triadic
#7E339A #9A7E33 #339A7E
tetradic
#7E339A #9A4A33 #4F9A33 #33839A
square
#7E339A #9A4A33 #4F9A33 #33839A
split-complementary
#7E339A #839A33 #339A4A
monochromatic
#33153E #58246C #7E339A #A148C2 #B976D2

Accessibility & contrast

On white

7.43
#7E339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E339A
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E339A#FFFFFF#000000##FFFFFF
##7E339A1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01519D
Deuteranopia (green-blind)
#325798
Tritanopia (blue-blind)
#7C4762
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e339a;
/* rgb */ color: rgb(126, 51, 154);
/* oklch */ color: oklch(47.2% 0.169 315.5);
Tailwind
colors: {
  custom: {
    50: '#a770b8',
    500: '#7e339a',
    950: '#000000',
  },
}
SCSS
$custom: #7e339a;
$custom-light: #a770b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e339a",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 283.689,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47155,
    "c": 0.16911,
    "h": 315.5
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#7E339A
secondary
#83BA6F
accent
#DA4E74
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E339A

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

Preview Lab → · Contrast checker → · Palette generator →

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