#7E2B81#7E2B81

#7E2B81 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.156 H 326.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E2B81
RGBrgb(126, 43, 129)
HSLhsl(298, 50%, 34%)
HSVhsv(298, 67%, 51%)
CMYKcmyk(2.3%, 66.7%, 0%, 49.4%)
CIE-LABlab(33.45, 47.26, -31.29)
CIE-LCHlch(33.45, 56.68, 326.49°)
OKLaboklab(44.66% 0.1303 -0.0867)
OKLCHoklch(44.66% 0.156 326.4)
XYZxyz(13.4303, 7.7492, 21.5530)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B81 #2E812B
analogous
#532B81 #7E2B81 #812B59
triadic
#7E2B81 #817E2B #2B817E
tetradic
#7E2B81 #81532B #2E812B #2B5981
square
#7E2B81 #81532B #2E812B #2B5981
split-complementary
#7E2B81 #59812B #2B8153
monochromatic
#240C25 #511C53 #7E2B81 #AB3AAF #C55DC9

Accessibility & contrast

On white

8.24
#7E2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B81
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B81#FFFFFF#000000##FFFFFF
##7E2B811.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4884
Deuteranopia (green-blind)
#3D527F
Tritanopia (blue-blind)
#813752
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2b81;
/* rgb */ color: rgb(126, 43, 129);
/* oklch */ color: oklch(44.7% 0.156 326.4);
Tailwind
colors: {
  custom: {
    50: '#a66ba6',
    500: '#7e2b81',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b81;
$custom-light: #a66ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b81",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 297.907,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44657,
    "c": 0.15648,
    "h": 326.4
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#7E2B81
secondary
#5CAF59
accent
#DA4E53
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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