#7E2B82#7E2B82

#7E2B82 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.157 H 325.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2B82
RGBrgb(126, 43, 130)
HSLhsl(297, 50%, 34%)
HSVhsv(297, 67%, 51%)
CMYKcmyk(3.1%, 66.9%, 0%, 49%)
CIE-LABlab(33.51, 47.44, -31.82)
CIE-LCHlch(33.51, 57.13, 326.15°)
OKLaboklab(44.72% 0.1303 -0.0882)
OKLCHoklch(44.72% 0.157 325.9)
XYZxyz(13.4970, 7.7759, 21.9048)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B82 #2F822B
analogous
#532B82 #7E2B82 #822B5B
triadic
#7E2B82 #827E2B #2B827E
tetradic
#7E2B82 #82532B #2F822B #2B5B82
square
#7E2B82 #82532B #2F822B #2B5B82
split-complementary
#7E2B82 #5B822B #2B8253
monochromatic
#250D26 #511C54 #7E2B82 #AB3AB0 #C55ECA

Accessibility & contrast

On white

8.22
#7E2B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B82
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B82#FFFFFF#000000##FFFFFF
##7E2B821.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4885
Deuteranopia (green-blind)
#3D5280
Tritanopia (blue-blind)
#813853
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2b82;
/* rgb */ color: rgb(126, 43, 130);
/* oklch */ color: oklch(44.7% 0.157 325.9);
Tailwind
colors: {
  custom: {
    50: '#a66ba7',
    500: '#7e2b82',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b82;
$custom-light: #a66ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b82",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 297.241,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44717,
    "c": 0.15738,
    "h": 325.9
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#7E2B82
secondary
#5DB059
accent
#DA4E54
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B82

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

Preview Lab → · Contrast checker → · Palette generator →

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