#7E2297#7E2297

#7E2297 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.187 H 317.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2297
RGBrgb(126, 34, 151)
HSLhsl(287, 63%, 36%)
HSVhsv(287, 77%, 59%)
CMYKcmyk(16.6%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.59, 54.99, -44.64)
CIE-LCHlch(33.59, 70.83, 320.93°)
OKLaboklab(45.2% 0.1387 -0.1256)
OKLCHoklch(45.2% 0.187 317.9)
XYZxyz(14.7613, 7.8147, 30.0030)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2297 #3B9722
analogous
#442297 #7E2297 #972276
triadic
#7E2297 #977E22 #22977E
tetradic
#7E2297 #974422 #3B9722 #227697
square
#7E2297 #974422 #3B9722 #227697
split-complementary
#7E2297 #769722 #229744
monochromatic
#2B0C33 #541765 #7E2297 #A82DC9 #BE5ADA

Accessibility & contrast

On white

8.19
#7E2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2297
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2297#FFFFFF#000000##FFFFFF
##7E22971.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#275294
Tritanopia (blue-blind)
#7D3B5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2297;
/* rgb */ color: rgb(126, 34, 151);
/* oklch */ color: oklch(45.2% 0.187 317.9);
Tailwind
colors: {
  custom: {
    50: '#a768b6',
    500: '#7e2297',
    950: '#000000',
  },
}
SCSS
$custom: #7e2297;
$custom-light: #a768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2297",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 287.179,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45199,
    "c": 0.18712,
    "h": 317.9
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#7E2297
secondary
#6DBE57
accent
#E64265
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2297

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

Preview Lab → · Contrast checker → · Palette generator →

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