#7E2E8F#7E2E8F

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

Color values

HEX#7E2E8F
RGBrgb(126, 46, 143)
HSLhsl(289, 51%, 37%)
HSVhsv(289, 68%, 56%)
CMYKcmyk(11.9%, 67.8%, 0%, 43.9%)
CIE-LABlab(34.75, 48.66, -37.89)
CIE-LCHlch(34.75, 61.67, 322.09°)
OKLaboklab(45.86% 0.1269 -0.1059)
OKLCHoklch(45.86% 0.165 320.1)
XYZxyz(14.5385, 8.3735, 26.8317)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E8F #3F8F2E
analogous
#4E2E8F #7E2E8F #8F2E6F
triadic
#7E2E8F #8F7E2E #2E8F7E
tetradic
#7E2E8F #8F4E2E #3F8F2E #2E6F8F
square
#7E2E8F #8F4E2E #3F8F2E #2E6F8F
split-complementary
#7E2E8F #6F8F2E #2E8F4E
monochromatic
#2C1032 #551F61 #7E2E8F #A73DBD #BD69CF

Accessibility & contrast

On white

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

On black

2.67
#7E2E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E2E8F#FFFFFF#000000##FFFFFF
##7E2E8F1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C92
Deuteranopia (green-blind)
#36558D
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2e8f;
/* rgb */ color: rgb(126, 46, 143);
/* oklch */ color: oklch(45.9% 0.165 320.1);
Tailwind
colors: {
  custom: {
    50: '#a66db0',
    500: '#7e2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e8f;
$custom-light: #a66db0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e8f",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 289.485,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.16526,
    "h": 320.1
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#7E2E8F
secondary
#72B663
accent
#DB4D66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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