#7E3597#7E3597

#7E3597 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.2% C 0.163 H 316.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7E3597
RGBrgb(126, 53, 151)
HSLhsl(285, 48%, 40%)
HSVhsv(285, 65%, 59%)
CMYKcmyk(16.6%, 64.9%, 0%, 40.8%)
CIE-LABlab(36.40, 47.09, -40.14)
CIE-LCHlch(36.40, 61.88, 319.56°)
OKLaboklab(47.2% 0.1183 -0.1125)
OKLCHoklch(47.2% 0.163 316.4)
XYZxyz(15.4624, 9.2168, 30.2367)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3597 #4E9735
analogous
#4D3597 #7E3597 #97357F
triadic
#7E3597 #977E35 #35977E
tetradic
#7E3597 #974D35 #4E9735 #357F97
square
#7E3597 #974D35 #4E9735 #357F97
split-complementary
#7E3597 #7F9735 #35974D
monochromatic
#32153C #58256A #7E3597 #A14ABF #B977CF

Accessibility & contrast

On white

7.39
#7E3597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E3597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3597
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3597#FFFFFF#000000##FFFFFF
##7E35971.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#7D4761
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e3597;
/* rgb */ color: rgb(126, 53, 151);
/* oklch */ color: oklch(47.2% 0.163 316.4);
Tailwind
colors: {
  custom: {
    50: '#a671b6',
    500: '#7e3597',
    950: '#000000',
  },
}
SCSS
$custom: #7e3597;
$custom-light: #a671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3597",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 151
  },
  "hsl": {
    "h": 284.694,
    "s": 48.039,
    "l": 40
  },
  "oklch": {
    "l": 0.47204,
    "c": 0.16325,
    "h": 316.4
  },
  "luminance": 0.09216
}

Semantic roles & 50–950 ramp

primary
#7E3597
secondary
#82B870
accent
#D85073
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3597

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

Preview Lab → · Contrast checker → · Palette generator →

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