#7E2A7B#7E2A7B

#7E2A7B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.153 H 329.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7E2A7B
RGBrgb(126, 42, 123)
HSLhsl(302, 50%, 33%)
HSVhsv(302, 67%, 49%)
CMYKcmyk(0%, 66.7%, 2.4%, 50.6%)
CIE-LABlab(32.97, 46.59, -28.31)
CIE-LCHlch(32.97, 54.52, 328.72°)
OKLaboklab(44.2% 0.1312 -0.078)
OKLCHoklch(44.2% 0.153 329.3)
XYZxyz(13.0072, 7.5225, 19.5020)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A7B #2A7E2D
analogous
#572A7E #7E2A7B #7E2A51
triadic
#7E2A7B #7B7E2A #2A7B7E
tetradic
#7E2A7B #7E572A #2A7E2D #2A517E
square
#7E2A7B #7E572A #2A7E2D #2A517E
split-complementary
#7E2A7B #517E2A #2A7E57
monochromatic
#220B21 #501B4E #7E2A7B #AC39A8 #C85AC4

Accessibility & contrast

On white

8.39
#7E2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A7B
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A7B#FFFFFF#000000##FFFFFF
##7E2A7B1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#405279
Tritanopia (blue-blind)
#82344F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2a7b;
/* rgb */ color: rgb(126, 42, 123);
/* oklch */ color: oklch(44.2% 0.153 329.3);
Tailwind
colors: {
  custom: {
    50: '#a66ba1',
    500: '#7e2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a7b;
$custom-light: #a66ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a7b",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 302.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44197,
    "c": 0.15262,
    "h": 329.3
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#7E2A7B
secondary
#56AE59
accent
#DA534E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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