#7E338C#7E338C

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

Color values

HEX#7E338C
RGBrgb(126, 51, 140)
HSLhsl(291, 47%, 37%)
HSVhsv(291, 64%, 55%)
CMYKcmyk(10%, 63.6%, 0%, 45.1%)
CIE-LABlab(35.40, 45.76, -35.02)
CIE-LCHlch(35.40, 57.63, 322.58°)
OKLaboklab(46.27% 0.1207 -0.0976)
OKLCHoklch(46.27% 0.155 321.1)
XYZxyz(14.5211, 8.6974, 25.7197)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E338C #418C33
analogous
#52338C #7E338C #8C336D
triadic
#7E338C #8C7E33 #338C7E
tetradic
#7E338C #8C5233 #418C33 #336D8C
square
#7E338C #8C5233 #418C33 #336D8C
split-complementary
#7E338C #6D8C33 #338C52
monochromatic
#2D1232 #56235F #7E338C #A643B9 #BC6FCB

Accessibility & contrast

On white

7.67
#7E338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E338C
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E338C#FFFFFF#000000##FFFFFF
##7E338C1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E8F
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#7F415B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e338c;
/* rgb */ color: rgb(126, 51, 140);
/* oklch */ color: oklch(46.3% 0.155 321.1);
Tailwind
colors: {
  custom: {
    50: '#a670ae',
    500: '#7e338c',
    950: '#000000',
  },
}
SCSS
$custom: #7e338c;
$custom-light: #a670ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e338c",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 290.562,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46266,
    "c": 0.15521,
    "h": 321.1
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#7E338C
secondary
#74B268
accent
#D65266
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E338C

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

Preview Lab → · Contrast checker → · Palette generator →

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