#7E2C94#7E2C94

#7E2C94 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.173 H 318.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7E2C94
RGBrgb(126, 44, 148)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 58%)
CMYKcmyk(14.9%, 70.3%, 0%, 42%)
CIE-LABlab(34.75, 50.53, -40.94)
CIE-LCHlch(34.75, 65.04, 320.98°)
OKLaboklab(45.96% 0.129 -0.1148)
OKLCHoklch(45.96% 0.173 318.3)
XYZxyz(14.8494, 8.3758, 28.8457)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C94 #42942C
analogous
#4A2C94 #7E2C94 #942C76
triadic
#7E2C94 #947E2C #2C947E
tetradic
#7E2C94 #944A2C #42942C #2C7694
square
#7E2C94 #944A2C #42942C #2C7694
split-complementary
#7E2C94 #76942C #2C944A
monochromatic
#2E1036 #561E65 #7E2C94 #A63AC3 #BC68D2

Accessibility & contrast

On white

7.85
#7E2C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E2C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C94
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C94#FFFFFF#000000##FFFFFF
##7E2C941.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#315492
Tritanopia (blue-blind)
#7E405D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2c94;
/* rgb */ color: rgb(126, 44, 148);
/* oklch */ color: oklch(46.0% 0.173 318.3);
Tailwind
colors: {
  custom: {
    50: '#a76cb4',
    500: '#7e2c94',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c94;
$custom-light: #a76cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c94",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 287.308,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45961,
    "c": 0.17266,
    "h": 318.3
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#7E2C94
secondary
#75B963
accent
#DE4A69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2C94

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

Preview Lab → · Contrast checker → · Palette generator →

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