#7E2397#7E2397

#7E2397 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.186 H 317.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2397
RGBrgb(126, 35, 151)
HSLhsl(287, 62%, 36%)
HSVhsv(287, 77%, 59%)
CMYKcmyk(16.6%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.72, 54.64, -44.44)
CIE-LCHlch(33.72, 70.43, 320.88°)
OKLaboklab(45.29% 0.1378 -0.125)
OKLCHoklch(45.29% 0.186 317.8)
XYZxyz(14.7903, 7.8727, 30.0127)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2397 #3C9723
analogous
#442397 #7E2397 #972376
triadic
#7E2397 #977E23 #23977E
tetradic
#7E2397 #974423 #3C9723 #237697
square
#7E2397 #974423 #3C9723 #237697
split-complementary
#7E2397 #769723 #239744
monochromatic
#2B0C34 #551765 #7E2397 #A72FC9 #BE5BD9

Accessibility & contrast

On white

8.16
#7E2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2397
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2397#FFFFFF#000000##FFFFFF
##7E23971.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#275294
Tritanopia (blue-blind)
#7D3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2397;
/* rgb */ color: rgb(126, 35, 151);
/* oklch */ color: oklch(45.3% 0.186 317.8);
Tailwind
colors: {
  custom: {
    50: '#a768b6',
    500: '#7e2397',
    950: '#000000',
  },
}
SCSS
$custom: #7e2397;
$custom-light: #a768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2397",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 287.069,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45285,
    "c": 0.18606,
    "h": 317.8
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#7E2397
secondary
#6EBE58
accent
#E54266
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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