#7E2294#7E2294

#7E2294 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 318.9°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7E2294
RGBrgb(126, 34, 148)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 58%)
CMYKcmyk(14.9%, 77%, 0%, 42%)
CIE-LABlab(33.39, 54.41, -43.13)
CIE-LCHlch(33.39, 69.43, 321.59°)
OKLaboklab(44.99% 0.1391 -0.1211)
OKLCHoklch(44.99% 0.184 318.9)
XYZxyz(14.5208, 7.7185, 28.7362)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2294 #389422
analogous
#452294 #7E2294 #942271
triadic
#7E2294 #947E22 #22947E
tetradic
#7E2294 #944522 #389422 #227194
square
#7E2294 #944522 #389422 #227194
split-complementary
#7E2294 #719422 #229445
monochromatic
#290B30 #541762 #7E2294 #A82DC6 #C058D9

Accessibility & contrast

On white

8.26
#7E2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2294
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2294#FFFFFF#000000##FFFFFF
##7E22941.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#2A5191
Tritanopia (blue-blind)
#7E3A5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2294;
/* rgb */ color: rgb(126, 34, 148);
/* oklch */ color: oklch(45.0% 0.184 318.9);
Tailwind
colors: {
  custom: {
    50: '#a768b4',
    500: '#7e2294',
    950: '#000000',
  },
}
SCSS
$custom: #7e2294;
$custom-light: #a768b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2294",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 288.421,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.18447,
    "h": 318.9
  },
  "luminance": 0.07718
}

Semantic roles & 50–950 ramp

primary
#7E2294
secondary
#69BD55
accent
#E64262
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2294

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

Preview Lab → · Contrast checker → · Palette generator →

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