#7E2A7C#7E2A7C

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

Color values

HEX#7E2A7C
RGBrgb(126, 42, 124)
HSLhsl(301, 50%, 33%)
HSVhsv(301, 67%, 49%)
CMYKcmyk(0%, 66.7%, 1.6%, 50.6%)
CIE-LABlab(33.02, 46.77, -28.85)
CIE-LCHlch(33.02, 54.96, 328.33°)
OKLaboklab(44.25% 0.1312 -0.0796)
OKLCHoklch(44.25% 0.153 328.8)
XYZxyz(13.0701, 7.5477, 19.8333)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A7C #2A7E2C
analogous
#562A7E #7E2A7C #7E2A52
triadic
#7E2A7C #7C7E2A #2A7C7E
tetradic
#7E2A7C #7E562A #2A7E2C #2A527E
square
#7E2A7C #7E562A #2A7E2C #2A527E
split-complementary
#7E2A7C #527E2A #2A7E56
monochromatic
#220B22 #501B4F #7E2A7C #AC39A9 #C85AC5

Accessibility & contrast

On white

8.37
#7E2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A7C
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A7C#FFFFFF#000000##FFFFFF
##7E2A7C1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467E
Deuteranopia (green-blind)
#40527A
Tritanopia (blue-blind)
#82344F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2a7c;
/* rgb */ color: rgb(126, 42, 124);
/* oklch */ color: oklch(44.3% 0.153 328.8);
Tailwind
colors: {
  custom: {
    50: '#a66ba2',
    500: '#7e2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a7c;
$custom-light: #a66ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a7c",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 301.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44254,
    "c": 0.15349,
    "h": 328.8
  },
  "luminance": 0.07547
}

Semantic roles & 50–950 ramp

primary
#7E2A7C
secondary
#56AE58
accent
#DA524E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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