#7E2D77#7E2D77

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

Color values

HEX#7E2D77
RGBrgb(126, 45, 119)
HSLhsl(305, 47%, 34%)
HSVhsv(305, 64%, 49%)
CMYKcmyk(0%, 64.3%, 5.6%, 50.6%)
CIE-LABlab(33.23, 44.56, -25.38)
CIE-LCHlch(33.23, 51.28, 330.33°)
OKLaboklab(44.32% 0.127 -0.0696)
OKLCHoklch(44.32% 0.145 331.3)
XYZxyz(12.8723, 7.6452, 18.2469)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D77 #2D7E34
analogous
#5C2D7E #7E2D77 #7E2D4E
triadic
#7E2D77 #777E2D #2D777E
tetradic
#7E2D77 #7E5C2D #2D7E34 #2D4E7E
square
#7E2D77 #7E5C2D #2D7E34 #2D4E7E
split-complementary
#7E2D77 #4E7E2D #2D7E5C
monochromatic
#240D22 #511D4C #7E2D77 #AB3DA2 #C65FBD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2D77#FFFFFF#000000##FFFFFF
##7E2D771.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)
#284779
Deuteranopia (green-blind)
#445275
Tritanopia (blue-blind)
#83354D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2d77;
/* rgb */ color: rgb(126, 45, 119);
/* oklch */ color: oklch(44.3% 0.145 331.3);
Tailwind
colors: {
  custom: {
    50: '#a66c9e',
    500: '#7e2d77',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d77;
$custom-light: #a66c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d77",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 305.185,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.14482,
    "h": 331.3
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#7E2D77
secondary
#5AAC61
accent
#D75C51
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2D77

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

Preview Lab → · Contrast checker → · Palette generator →

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