#7E2E8D#7E2E8D

#7E2E8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 321.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E2E8D
RGBrgb(126, 46, 141)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 67%, 55%)
CMYKcmyk(10.6%, 67.4%, 0%, 44.7%)
CIE-LABlab(34.63, 48.26, -36.86)
CIE-LCHlch(34.63, 60.72, 322.63°)
OKLaboklab(45.73% 0.1269 -0.1029)
OKLCHoklch(45.73% 0.163 321)
XYZxyz(14.3883, 8.3134, 26.0409)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E8D #3D8D2E
analogous
#4F2E8D #7E2E8D #8D2E6D
triadic
#7E2E8D #8D7E2E #2E8D7E
tetradic
#7E2E8D #8D4F2E #3D8D2E #2E6D8D
square
#7E2E8D #8D4F2E #3D8D2E #2E6D8D
split-complementary
#7E2E8D #6D8D2E #2E8D4F
monochromatic
#2C1031 #551F5F #7E2E8D #A73DBB #BE68CE

Accessibility & contrast

On white

7.89
#7E2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2E8D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E8D#FFFFFF#000000##FFFFFF
##7E2E8D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C90
Deuteranopia (green-blind)
#38548B
Tritanopia (blue-blind)
#7F3E59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2e8d;
/* rgb */ color: rgb(126, 46, 141);
/* oklch */ color: oklch(45.7% 0.163 321.0);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7e2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e8d;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e8d",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 290.526,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4573,
    "c": 0.16336,
    "h": 321
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#7E2E8D
secondary
#6FB562
accent
#DA4E64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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