#7E2B84#7E2B84

#7E2B84 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.159 H 325.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7E2B84
RGBrgb(126, 43, 132)
HSLhsl(296, 51%, 34%)
HSVhsv(296, 67%, 52%)
CMYKcmyk(4.5%, 67.4%, 0%, 48.2%)
CIE-LABlab(33.63, 47.82, -32.89)
CIE-LCHlch(33.63, 58.04, 325.48°)
OKLaboklab(44.84% 0.1304 -0.0913)
OKLCHoklch(44.84% 0.159 325)
XYZxyz(13.6326, 7.8301, 22.6186)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B84 #31842B
analogous
#522B84 #7E2B84 #842B5E
triadic
#7E2B84 #847E2B #2B847E
tetradic
#7E2B84 #84522B #31842B #2B5E84
square
#7E2B84 #84522B #31842B #2B5E84
split-complementary
#7E2B84 #5E842B #2B8452
monochromatic
#260D28 #521C56 #7E2B84 #AA3AB2 #C35FCB

Accessibility & contrast

On white

8.18
#7E2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B84
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B84#FFFFFF#000000##FFFFFF
##7E2B841.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194987
Deuteranopia (green-blind)
#3C5382
Tritanopia (blue-blind)
#813854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2b84;
/* rgb */ color: rgb(126, 43, 132);
/* oklch */ color: oklch(44.8% 0.159 325.0);
Tailwind
colors: {
  custom: {
    50: '#a66ba8',
    500: '#7e2b84',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b84;
$custom-light: #a66ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b84",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 295.955,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44837,
    "c": 0.15918,
    "h": 325
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#7E2B84
secondary
#60B15A
accent
#DA4D57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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