#7E2A94#7E2A94

#7E2A94 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 318.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7E2A94
RGBrgb(126, 42, 148)
HSLhsl(288, 56%, 37%)
HSVhsv(288, 72%, 58%)
CMYKcmyk(14.9%, 71.6%, 0%, 42%)
CIE-LABlab(34.46, 51.36, -41.42)
CIE-LCHlch(34.46, 65.98, 321.12°)
OKLaboklab(45.75% 0.1311 -0.1162)
OKLCHoklch(45.75% 0.175 318.5)
XYZxyz(14.7767, 8.2303, 28.8215)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A94 #40942A
analogous
#492A94 #7E2A94 #942A75
triadic
#7E2A94 #947E2A #2A947E
tetradic
#7E2A94 #94492A #40942A #2A7594
square
#7E2A94 #94492A #40942A #2A7594
split-complementary
#7E2A94 #75942A #2A9449
monochromatic
#2D0F35 #551C64 #7E2A94 #A738C4 #BC65D3

Accessibility & contrast

On white

7.94
#7E2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A94
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A94#FFFFFF#000000##FFFFFF
##7E2A941.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#7E3E5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2a94;
/* rgb */ color: rgb(126, 42, 148);
/* oklch */ color: oklch(45.7% 0.175 318.5);
Tailwind
colors: {
  custom: {
    50: '#a76bb4',
    500: '#7e2a94',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a94;
$custom-light: #a76bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a94",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 287.547,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45749,
    "c": 0.17521,
    "h": 318.5
  },
  "luminance": 0.0823
}

Semantic roles & 50–950 ramp

primary
#7E2A94
secondary
#73B960
accent
#DF4968
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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