#7E277B#7E277B

#7E277B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.157 H 329.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7E277B
RGBrgb(126, 39, 123)
HSLhsl(302, 53%, 32%)
HSVhsv(302, 69%, 49%)
CMYKcmyk(0%, 69%, 2.4%, 50.6%)
CIE-LABlab(32.52, 47.85, -29.02)
CIE-LCHlch(32.52, 55.96, 328.77°)
OKLaboklab(43.87% 0.1348 -0.08)
OKLCHoklch(43.87% 0.157 329.3)
XYZxyz(12.9047, 7.3176, 19.4678)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E277B #277E2A
analogous
#56277E #7E277B #7E2750
triadic
#7E277B #7B7E27 #277B7E
tetradic
#7E277B #7E5627 #277E2A #27507E
square
#7E277B #7E5627 #277E2A #27507E
split-complementary
#7E277B #507E27 #277E56
monochromatic
#210A20 #4F194D #7E277B #AD35A9 #CA55C6

Accessibility & contrast

On white

8.52
#7E277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E277B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E277B#FFFFFF#000000##FFFFFF
##7E277B1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457D
Deuteranopia (green-blind)
#3F5179
Tritanopia (blue-blind)
#82324E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e277b;
/* rgb */ color: rgb(126, 39, 123);
/* oklch */ color: oklch(43.9% 0.157 329.3);
Tailwind
colors: {
  custom: {
    50: '#a669a1',
    500: '#7e277b',
    950: '#000000',
  },
}
SCSS
$custom: #7e277b;
$custom-light: #a669a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e277b",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 302.069,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43873,
    "c": 0.15673,
    "h": 329.3
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#7E277B
secondary
#52AF55
accent
#DC514C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E277B

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

Preview Lab → · Contrast checker → · Palette generator →

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