#7E2774#7E2774

#7E2774 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.151 H 332.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7E2774
RGBrgb(126, 39, 116)
HSLhsl(307, 53%, 32%)
HSVhsv(307, 69%, 49%)
CMYKcmyk(0%, 69%, 7.9%, 50.6%)
CIE-LABlab(32.14, 46.64, -25.20)
CIE-LCHlch(32.14, 53.01, 331.62°)
OKLaboklab(43.48% 0.1342 -0.069)
OKLCHoklch(43.48% 0.151 332.8)
XYZxyz(12.4821, 7.1486, 17.2420)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2774 #277E31
analogous
#5D277E #7E2774 #7E2748
triadic
#7E2774 #747E27 #27747E
tetradic
#7E2774 #7E5D27 #277E31 #27487E
square
#7E2774 #7E5D27 #277E31 #27487E
split-complementary
#7E2774 #487E27 #277E5D
monochromatic
#210A1E #4F1949 #7E2774 #AD359F #CA55BD

Accessibility & contrast

On white

8.64
#7E2774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E2774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2774
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2774#FFFFFF#000000##FFFFFF
##7E27741.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244476
Deuteranopia (green-blind)
#425072
Tritanopia (blue-blind)
#842F4A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2774;
/* rgb */ color: rgb(126, 39, 116);
/* oklch */ color: oklch(43.5% 0.151 332.8);
Tailwind
colors: {
  custom: {
    50: '#a6699c',
    500: '#7e2774',
    950: '#000000',
  },
}
SCSS
$custom: #7e2774;
$custom-light: #a6699c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2774",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 306.897,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.15092,
    "h": 332.8
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#7E2774
secondary
#52AF5C
accent
#DC5C4C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2774

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

Preview Lab → · Contrast checker → · Palette generator →

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