#7E2B86#7E2B86

#7E2B86 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.161 H 324.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2B86
RGBrgb(126, 43, 134)
HSLhsl(295, 51%, 35%)
HSVhsv(295, 68%, 53%)
CMYKcmyk(6%, 67.9%, 0%, 47.5%)
CIE-LABlab(33.74, 48.20, -33.94)
CIE-LCHlch(33.74, 58.95, 324.85°)
OKLaboklab(44.96% 0.1304 -0.0944)
OKLCHoklch(44.96% 0.161 324.1)
XYZxyz(13.7708, 7.8854, 23.3463)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B86 #33862B
analogous
#502B86 #7E2B86 #862B61
triadic
#7E2B86 #867E2B #2B867E
tetradic
#7E2B86 #86502B #33862B #2B6186
square
#7E2B86 #86502B #33862B #2B6186
split-complementary
#7E2B86 #61862B #2B8650
monochromatic
#270D29 #521C58 #7E2B86 #AA3AB4 #C260CC

Accessibility & contrast

On white

8.15
#7E2B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B86
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B86#FFFFFF#000000##FFFFFF
##7E2B861.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174989
Deuteranopia (green-blind)
#3B5384
Tritanopia (blue-blind)
#803955
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2b86;
/* rgb */ color: rgb(126, 43, 134);
/* oklch */ color: oklch(45.0% 0.161 324.1);
Tailwind
colors: {
  custom: {
    50: '#a66baa',
    500: '#7e2b86',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b86;
$custom-light: #a66baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b86",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 134
  },
  "hsl": {
    "h": 294.725,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.16099,
    "h": 324.1
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#7E2B86
secondary
#63B25B
accent
#DB4D59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B86

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

Preview Lab → · Contrast checker → · Palette generator →

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