#7E2B7B#7E2B7B

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

Color values

HEX#7E2B7B
RGBrgb(126, 43, 123)
HSLhsl(302, 49%, 33%)
HSVhsv(302, 66%, 49%)
CMYKcmyk(0%, 65.9%, 2.4%, 50.6%)
CIE-LABlab(33.12, 46.16, -28.07)
CIE-LCHlch(33.12, 54.02, 328.70°)
OKLaboklab(44.31% 0.1299 -0.0773)
OKLCHoklch(44.31% 0.151 329.2)
XYZxyz(13.0431, 7.5943, 19.5139)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B7B #2B7E2E
analogous
#572B7E #7E2B7B #7E2B51
triadic
#7E2B7B #7B7E2B #2B7B7E
tetradic
#7E2B7B #7E572B #2B7E2E #2B517E
square
#7E2B7B #7E572B #2B7E2E #2B517E
split-complementary
#7E2B7B #517E2B #2B7E57
monochromatic
#230C22 #501B4E #7E2B7B #AC3BA8 #C75CC3

Accessibility & contrast

On white

8.34
#7E2B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B7B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B7B#FFFFFF#000000##FFFFFF
##7E2B7B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#415279
Tritanopia (blue-blind)
#82354F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2b7b;
/* rgb */ color: rgb(126, 43, 123);
/* oklch */ color: oklch(44.3% 0.151 329.2);
Tailwind
colors: {
  custom: {
    50: '#a66ba1',
    500: '#7e2b7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b7b;
$custom-light: #a66ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b7b",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 302.169,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4431,
    "c": 0.1512,
    "h": 329.2
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#7E2B7B
secondary
#58AD5B
accent
#D9544F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E2B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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