#7E2E77#7E2E77

#7E2E77 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.4% C 0.143 H 331.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7E2E77
RGBrgb(126, 46, 119)
HSLhsl(305, 47%, 34%)
HSVhsv(305, 63%, 49%)
CMYKcmyk(0%, 63.5%, 5.6%, 50.6%)
CIE-LABlab(33.40, 44.10, -25.12)
CIE-LCHlch(33.40, 50.76, 330.33°)
OKLaboklab(44.44% 0.1257 -0.0689)
OKLCHoklch(44.44% 0.143 331.3)
XYZxyz(12.9109, 7.7224, 18.2598)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E77 #2E7E35
analogous
#5D2E7E #7E2E77 #7E2E4F
triadic
#7E2E77 #777E2E #2E777E
tetradic
#7E2E77 #7E5D2E #2E7E35 #2E4F7E
square
#7E2E77 #7E5D2E #2E7E35 #2E4F7E
split-complementary
#7E2E77 #4F7E2E #2E7E5D
monochromatic
#240D22 #511E4D #7E2E77 #AB3EA1 #C561BD

Accessibility & contrast

On white

8.25
#7E2E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E77
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E77#FFFFFF#000000##FFFFFF
##7E2E771.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4779
Deuteranopia (green-blind)
#445375
Tritanopia (blue-blind)
#83364E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2e77;
/* rgb */ color: rgb(126, 46, 119);
/* oklch */ color: oklch(44.4% 0.143 331.3);
Tailwind
colors: {
  custom: {
    50: '#a66c9e',
    500: '#7e2e77',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e77;
$custom-light: #a66c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e77",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 305.25,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44441,
    "c": 0.14332,
    "h": 331.3
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#7E2E77
secondary
#5CAC63
accent
#D65D52
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2E77

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

Preview Lab → · Contrast checker → · Palette generator →

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