#7E338E#7E338E

#7E338E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.4% C 0.157 H 320.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7E338E
RGBrgb(126, 51, 142)
HSLhsl(289, 47%, 38%)
HSVhsv(289, 64%, 56%)
CMYKcmyk(11.3%, 64.1%, 0%, 44.3%)
CIE-LABlab(35.51, 46.17, -36.06)
CIE-LCHlch(35.51, 58.58, 322.01°)
OKLaboklab(46.39% 0.1208 -0.1006)
OKLCHoklch(46.39% 0.157 320.2)
XYZxyz(14.6699, 8.7570, 26.5035)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E338E #438E33
analogous
#51338E #7E338E #8E3370
triadic
#7E338E #8E7E33 #338E7E
tetradic
#7E338E #8E5133 #438E33 #33708E
square
#7E338E #8E5133 #438E33 #33708E
split-complementary
#7E338E #708E33 #338E51
monochromatic
#2E1334 #562361 #7E338E #A643BB #BB70CC

Accessibility & contrast

On white

7.63
#7E338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E338E
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E338E#FFFFFF#000000##FFFFFF
##7E338E1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E91
Deuteranopia (green-blind)
#3B568C
Tritanopia (blue-blind)
#7F425C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e338e;
/* rgb */ color: rgb(126, 51, 142);
/* oklch */ color: oklch(46.4% 0.157 320.2);
Tailwind
colors: {
  custom: {
    50: '#a670af',
    500: '#7e338e',
    950: '#000000',
  },
}
SCSS
$custom: #7e338e;
$custom-light: #a670af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e338e",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 289.451,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.15717,
    "h": 320.2
  },
  "luminance": 0.08756
}

Semantic roles & 50–950 ramp

primary
#7E338E
secondary
#76B469
accent
#D75169
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E338E

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

Preview Lab → · Contrast checker → · Palette generator →

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