#7E2E9C#7E2E9C

#7E2E9C is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.178 H 315.2°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7E2E9C
RGBrgb(126, 46, 156)
HSLhsl(284, 54%, 40%)
HSVhsv(284, 71%, 61%)
CMYKcmyk(19.2%, 70.5%, 0%, 38.8%)
CIE-LABlab(35.58, 51.33, -44.49)
CIE-LCHlch(35.58, 67.93, 319.08°)
OKLaboklab(46.72% 0.1262 -0.1252)
OKLCHoklch(46.72% 0.178 315.2)
XYZxyz(15.5810, 8.7905, 32.3220)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E9C #4C9C2E
analogous
#472E9C #7E2E9C #9C2E83
triadic
#7E2E9C #9C7E2E #2E9C7E
tetradic
#7E2E9C #9C472E #4C9C2E #2E839C
square
#7E2E9C #9C472E #4C9C2E #2E839C
split-complementary
#7E2E9C #839C2E #2E9C47
monochromatic
#32123D #58206D #7E2E9C #A240C7 #B970D5

Accessibility & contrast

On white

7.61
#7E2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E9C
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E9C#FFFFFF#000000##FFFFFF
##7E2E9C1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#2B5699
Tritanopia (blue-blind)
#7C4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2e9c;
/* rgb */ color: rgb(126, 46, 156);
/* oklch */ color: oklch(46.7% 0.178 315.2);
Tailwind
colors: {
  custom: {
    50: '#a76eba',
    500: '#7e2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e9c;
$custom-light: #a76eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e9c",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 283.636,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.17775,
    "h": 315.2
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#7E2E9C
secondary
#80BC6A
accent
#DE4A72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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