#7E2A80#7E2A80

#7E2A80 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.157 H 326.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E2A80
RGBrgb(126, 42, 128)
HSLhsl(299, 51%, 33%)
HSVhsv(299, 67%, 50%)
CMYKcmyk(1.6%, 67.2%, 0%, 49.8%)
CIE-LABlab(33.24, 47.50, -31.00)
CIE-LCHlch(33.24, 56.72, 326.87°)
OKLaboklab(44.49% 0.1315 -0.0858)
OKLCHoklch(44.49% 0.157 326.9)
XYZxyz(13.3282, 7.6509, 21.1927)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A80 #2C802A
analogous
#532A80 #7E2A80 #802A57
triadic
#7E2A80 #807E2A #2A807E
tetradic
#7E2A80 #80532A #2C802A #2A5780
square
#7E2A80 #80532A #2C802A #2A5780
split-complementary
#7E2A80 #57802A #2A8053
monochromatic
#230C24 #511B52 #7E2A80 #AB39AE #C75BC9

Accessibility & contrast

On white

8.30
#7E2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A80
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A80#FFFFFF#000000##FFFFFF
##7E2A801.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4783
Deuteranopia (green-blind)
#3D527E
Tritanopia (blue-blind)
#823651
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2a80;
/* rgb */ color: rgb(126, 42, 128);
/* oklch */ color: oklch(44.5% 0.157 326.9);
Tailwind
colors: {
  custom: {
    50: '#a66ba5',
    500: '#7e2a80',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a80;
$custom-light: #a66ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a80",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 298.605,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.15698,
    "h": 326.9
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#7E2A80
secondary
#59AF57
accent
#DA4E51
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2A80

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

Preview Lab → · Contrast checker → · Palette generator →

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