#7E338D#7E338D

#7E338D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.3% C 0.156 H 320.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7E338D
RGBrgb(126, 51, 141)
HSLhsl(290, 47%, 38%)
HSVhsv(290, 64%, 55%)
CMYKcmyk(10.6%, 63.8%, 0%, 44.7%)
CIE-LABlab(35.45, 45.97, -35.54)
CIE-LCHlch(35.45, 58.10, 322.29°)
OKLaboklab(46.33% 0.1207 -0.0991)
OKLCHoklch(46.33% 0.156 320.6)
XYZxyz(14.5952, 8.7271, 26.1098)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E338D #428D33
analogous
#51338D #7E338D #8D336F
triadic
#7E338D #8D7E33 #338D7E
tetradic
#7E338D #8D5133 #428D33 #336F8D
square
#7E338D #8D5133 #428D33 #336F8D
split-complementary
#7E338D #6F8D33 #338D51
monochromatic
#2E1233 #562360 #7E338D #A643BA #BC6FCB

Accessibility & contrast

On white

7.65
#7E338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E338D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E338D#FFFFFF#000000##FFFFFF
##7E338D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#7F425B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e338d;
/* rgb */ color: rgb(126, 51, 141);
/* oklch */ color: oklch(46.3% 0.156 320.6);
Tailwind
colors: {
  custom: {
    50: '#a670af',
    500: '#7e338d',
    950: '#000000',
  },
}
SCSS
$custom: #7e338d;
$custom-light: #a670af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e338d",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 290,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46327,
    "c": 0.15619,
    "h": 320.6
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#7E338D
secondary
#75B369
accent
#D75167
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E338D

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

Preview Lab → · Contrast checker → · Palette generator →

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