#7E2E86#7E2E86

#7E2E86 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.157 H 324.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E2E86
RGBrgb(126, 46, 134)
HSLhsl(295, 49%, 35%)
HSVhsv(295, 66%, 53%)
CMYKcmyk(6%, 65.7%, 0%, 47.5%)
CIE-LABlab(34.21, 46.89, -33.19)
CIE-LCHlch(34.21, 57.45, 324.70°)
OKLaboklab(45.3% 0.1268 -0.0922)
OKLCHoklch(45.3% 0.157 324)
XYZxyz(13.8839, 8.1116, 23.3840)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E86 #36862E
analogous
#522E86 #7E2E86 #862E62
triadic
#7E2E86 #867E2E #2E867E
tetradic
#7E2E86 #86522E #36862E #2E6286
square
#7E2E86 #86522E #36862E #2E6286
split-complementary
#7E2E86 #62862E #2E8652
monochromatic
#280F2B #531E58 #7E2E86 #A93EB4 #C164CA

Accessibility & contrast

On white

8.01
#7E2E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E86
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E86#FFFFFF#000000##FFFFFF
##7E2E861.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4A89
Deuteranopia (green-blind)
#3C5484
Tritanopia (blue-blind)
#803B56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2e86;
/* rgb */ color: rgb(126, 46, 134);
/* oklch */ color: oklch(45.3% 0.157 324.0);
Tailwind
colors: {
  custom: {
    50: '#a66da9',
    500: '#7e2e86',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e86;
$custom-light: #a66da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e86",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 294.545,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45299,
    "c": 0.15679,
    "h": 324
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#7E2E86
secondary
#67B15F
accent
#D84F5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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