#7E2C91#7E2C91

#7E2C91 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.170 H 319.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7E2C91
RGBrgb(126, 44, 145)
HSLhsl(289, 53%, 37%)
HSVhsv(289, 70%, 57%)
CMYKcmyk(13.1%, 69.7%, 0%, 43.1%)
CIE-LABlab(34.56, 49.92, -39.41)
CIE-LCHlch(34.56, 63.61, 321.71°)
OKLaboklab(45.76% 0.1291 -0.1103)
OKLCHoklch(45.76% 0.17 319.5)
XYZxyz(14.6150, 8.2820, 27.6113)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C91 #3F912C
analogous
#4C2C91 #7E2C91 #912C72
triadic
#7E2C91 #917E2C #2C917E
tetradic
#7E2C91 #914C2C #3F912C #2C7291
square
#7E2C91 #914C2C #3F912C #2C7291
split-complementary
#7E2C91 #72912C #2C914C
monochromatic
#2C1033 #551E62 #7E2C91 #A73AC0 #BD67D1

Accessibility & contrast

On white

7.91
#7E2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E2C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C91
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C91#FFFFFF#000000##FFFFFF
##7E2C911.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014C94
Deuteranopia (green-blind)
#34548F
Tritanopia (blue-blind)
#7E3E5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2c91;
/* rgb */ color: rgb(126, 44, 145);
/* oklch */ color: oklch(45.8% 0.170 319.5);
Tailwind
colors: {
  custom: {
    50: '#a76cb2',
    500: '#7e2c91',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c91;
$custom-light: #a76cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c91",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 288.713,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45763,
    "c": 0.16983,
    "h": 319.5
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#7E2C91
secondary
#72B762
accent
#DD4B66
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2C91

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

Preview Lab → · Contrast checker → · Palette generator →

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