#7E2894#7E2894

#7E2894 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.178 H 318.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7E2894
RGBrgb(126, 40, 148)
HSLhsl(288, 57%, 37%)
HSVhsv(288, 73%, 58%)
CMYKcmyk(14.9%, 73%, 0%, 42%)
CIE-LABlab(34.17, 52.17, -41.87)
CIE-LCHlch(34.17, 66.89, 321.25°)
OKLaboklab(45.55% 0.1333 -0.1175)
OKLCHoklch(45.55% 0.178 318.6)
XYZxyz(14.7075, 8.0920, 28.7984)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2894 #3E9428
analogous
#482894 #7E2894 #942874
triadic
#7E2894 #947E28 #28947E
tetradic
#7E2894 #944828 #3E9428 #287494
square
#7E2894 #944828 #3E9428 #287494
split-complementary
#7E2894 #749428 #289448
monochromatic
#2C0E34 #551B64 #7E2894 #A735C4 #BD62D5

Accessibility & contrast

On white

8.02
#7E2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2894
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2894#FFFFFF#000000##FFFFFF
##7E28941.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2E5392
Tritanopia (blue-blind)
#7E3D5B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2894;
/* rgb */ color: rgb(126, 40, 148);
/* oklch */ color: oklch(45.5% 0.178 318.6);
Tailwind
colors: {
  custom: {
    50: '#a76ab4',
    500: '#7e2894',
    950: '#000000',
  },
}
SCSS
$custom: #7e2894;
$custom-light: #a76ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2894",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 287.778,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45546,
    "c": 0.17766,
    "h": 318.6
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#7E2894
secondary
#70BA5E
accent
#E14766
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2894

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

Preview Lab → · Contrast checker → · Palette generator →

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