#7E2B74#7E2B74

#7E2B74 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.9% C 0.145 H 332.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2B74
RGBrgb(126, 43, 116)
HSLhsl(307, 49%, 33%)
HSVhsv(307, 66%, 49%)
CMYKcmyk(0%, 65.9%, 7.9%, 50.6%)
CIE-LABlab(32.76, 44.93, -24.24)
CIE-LCHlch(32.76, 51.05, 331.65°)
OKLaboklab(43.92% 0.1292 -0.0663)
OKLCHoklch(43.92% 0.145 332.8)
XYZxyz(12.6205, 7.4253, 17.2881)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B74 #2B7E35
analogous
#5E2B7E #7E2B74 #7E2B4A
triadic
#7E2B74 #747E2B #2B747E
tetradic
#7E2B74 #7E5E2B #2B7E35 #2B4A7E
square
#7E2B74 #7E5E2B #2B7E35 #2B4A7E
split-complementary
#7E2B74 #4A7E2B #2B7E5E
monochromatic
#230C20 #501B4A #7E2B74 #AC3B9E #C75CBA

Accessibility & contrast

On white

8.45
#7E2B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B74
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B74#FFFFFF#000000##FFFFFF
##7E2B741.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284576
Deuteranopia (green-blind)
#445172
Tritanopia (blue-blind)
#84324B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2b74;
/* rgb */ color: rgb(126, 43, 116);
/* oklch */ color: oklch(43.9% 0.145 332.8);
Tailwind
colors: {
  custom: {
    50: '#a66b9c',
    500: '#7e2b74',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b74;
$custom-light: #a66b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b74",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 307.229,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43923,
    "c": 0.14525,
    "h": 332.8
  },
  "luminance": 0.07424
}

Semantic roles & 50–950 ramp

primary
#7E2B74
secondary
#58AD62
accent
#D9604F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2B74

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

Preview Lab → · Contrast checker → · Palette generator →

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