#7E2980#7E2980

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

Color values

HEX#7E2980
RGBrgb(126, 41, 128)
HSLhsl(299, 51%, 33%)
HSVhsv(299, 68%, 50%)
CMYKcmyk(1.6%, 68%, 0%, 49.8%)
CIE-LABlab(33.09, 47.92, -31.24)
CIE-LCHlch(33.09, 57.21, 326.90°)
OKLaboklab(44.38% 0.1326 -0.0865)
OKLCHoklch(44.38% 0.158 326.9)
XYZxyz(13.2932, 7.5809, 21.1810)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2980 #2B8029
analogous
#522980 #7E2980 #802956
triadic
#7E2980 #807E29 #29807E
tetradic
#7E2980 #805229 #2B8029 #295680
square
#7E2980 #805229 #2B8029 #295680
split-complementary
#7E2980 #568029 #298052
monochromatic
#230B23 #501A52 #7E2980 #AC38AE #C759CA

Accessibility & contrast

On white

8.35
#7E2980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2980
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2980#FFFFFF#000000##FFFFFF
##7E29801.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2980;
/* rgb */ color: rgb(126, 41, 128);
/* oklch */ color: oklch(44.4% 0.158 326.9);
Tailwind
colors: {
  custom: {
    50: '#a66aa5',
    500: '#7e2980',
    950: '#000000',
  },
}
SCSS
$custom: #7e2980;
$custom-light: #a66aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2980",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 298.621,
    "s": 51.479,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44379,
    "c": 0.15835,
    "h": 326.9
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#7E2980
secondary
#58AF55
accent
#DB4D50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2980

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

Preview Lab → · Contrast checker → · Palette generator →

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