#7E3097#7E3097

#7E3097 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.170 H 316.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7E3097
RGBrgb(126, 48, 151)
HSLhsl(285, 52%, 39%)
HSVhsv(285, 68%, 59%)
CMYKcmyk(16.6%, 68.2%, 0%, 40.8%)
CIE-LABlab(35.57, 49.40, -41.47)
CIE-LCHlch(35.57, 64.50, 319.99°)
OKLaboklab(46.61% 0.1243 -0.1164)
OKLCHoklch(46.61% 0.17 316.9)
XYZxyz(15.2462, 8.7845, 30.1646)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3097 #499730
analogous
#4B3097 #7E3097 #97307D
triadic
#7E3097 #977E30 #30977E
tetradic
#7E3097 #974B30 #499730 #307D97
square
#7E3097 #974B30 #499730 #307D97
split-complementary
#7E3097 #7D9730 #30974B
monochromatic
#31123A #572169 #7E3097 #A341C3 #BA70D2

Accessibility & contrast

On white

7.62
#7E3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E3097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3097
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3097#FFFFFF#000000##FFFFFF
##7E30971.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#325695
Tritanopia (blue-blind)
#7D435F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3097;
/* rgb */ color: rgb(126, 48, 151);
/* oklch */ color: oklch(46.6% 0.170 316.9);
Tailwind
colors: {
  custom: {
    50: '#a76fb6',
    500: '#7e3097',
    950: '#000000',
  },
}
SCSS
$custom: #7e3097;
$custom-light: #a76fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3097",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 285.437,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.17026,
    "h": 316.9
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#7E3097
secondary
#7DB96A
accent
#DB4D6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3097

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

Preview Lab → · Contrast checker → · Palette generator →

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