#7E3198#7E3198

#7E3198 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.170 H 316.4°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7E3198
RGBrgb(126, 49, 152)
HSLhsl(285, 51%, 39%)
HSVhsv(285, 68%, 60%)
CMYKcmyk(17.1%, 67.8%, 0%, 40.4%)
CIE-LABlab(35.79, 49.16, -41.72)
CIE-LCHlch(35.79, 64.48, 319.68°)
OKLaboklab(46.79% 0.1231 -0.1171)
OKLCHoklch(46.79% 0.17 316.4)
XYZxyz(15.3691, 8.8998, 30.6079)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3198 #4B9831
analogous
#4A3198 #7E3198 #98317F
triadic
#7E3198 #987E31 #31987E
tetradic
#7E3198 #984A31 #4B9831 #317F98
square
#7E3198 #984A31 #4B9831 #317F98
split-complementary
#7E3198 #7F9831 #31984A
monochromatic
#31133B #58226A #7E3198 #A344C3 #B972D2

Accessibility & contrast

On white

7.55
#7E3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3198
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3198#FFFFFF#000000##FFFFFF
##7E31981.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#325696
Tritanopia (blue-blind)
#7D4460
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3198;
/* rgb */ color: rgb(126, 49, 152);
/* oklch */ color: oklch(46.8% 0.170 316.4);
Tailwind
colors: {
  custom: {
    50: '#a76fb7',
    500: '#7e3198',
    950: '#000000',
  },
}
SCSS
$custom: #7e3198;
$custom-light: #a76fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3198",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 284.854,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46787,
    "c": 0.16988,
    "h": 316.4
  },
  "luminance": 0.08899
}

Semantic roles & 50–950 ramp

primary
#7E3198
secondary
#7FB96B
accent
#DB4D71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3198

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

Preview Lab → · Contrast checker → · Palette generator →

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