#7E2B73#7E2B73

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

Color values

HEX#7E2B73
RGBrgb(126, 43, 115)
HSLhsl(308, 49%, 33%)
HSVhsv(308, 66%, 49%)
CMYKcmyk(0%, 65.9%, 8.7%, 50.6%)
CIE-LABlab(32.71, 44.76, -23.68)
CIE-LCHlch(32.71, 50.64, 332.11°)
OKLaboklab(43.87% 0.1291 -0.0647)
OKLCHoklch(43.87% 0.144 333.4)
XYZxyz(12.5626, 7.4022, 16.9834)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B73 #2B7E36
analogous
#5F2B7E #7E2B73 #7E2B49
triadic
#7E2B73 #737E2B #2B737E
tetradic
#7E2B73 #7E5F2B #2B7E36 #2B497E
square
#7E2B73 #7E5F2B #2B7E36 #2B497E
split-complementary
#7E2B73 #497E2B #2B7E5F
monochromatic
#230C20 #501B49 #7E2B73 #AC3B9D #C75CB9

Accessibility & contrast

On white

8.47
#7E2B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B73
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B73#FFFFFF#000000##FFFFFF
##7E2B731.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2b73;
/* rgb */ color: rgb(126, 43, 115);
/* oklch */ color: oklch(43.9% 0.144 333.4);
Tailwind
colors: {
  custom: {
    50: '#a66b9b',
    500: '#7e2b73',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b73;
$custom-light: #a66b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b73",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 307.952,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4387,
    "c": 0.14442,
    "h": 333.4
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#7E2B73
secondary
#58AD63
accent
#D9614F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2B73

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

Preview Lab → · Contrast checker → · Palette generator →

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