#7E2D8A#7E2D8A

#7E2D8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.162 H 322.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2D8A
RGBrgb(126, 45, 138)
HSLhsl(292, 51%, 36%)
HSVhsv(292, 67%, 54%)
CMYKcmyk(8.7%, 67.4%, 0%, 45.9%)
CIE-LABlab(34.29, 48.11, -35.55)
CIE-LCHlch(34.29, 59.81, 323.54°)
OKLaboklab(45.43% 0.1281 -0.099)
OKLCHoklch(45.43% 0.162 322.3)
XYZxyz(14.1295, 8.1481, 24.8683)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D8A #398A2D
analogous
#4F2D8A #7E2D8A #8A2D67
triadic
#7E2D8A #8A7E2D #2D8A7E
tetradic
#7E2D8A #8A4F2D #398A2D #2D678A
square
#7E2D8A #8A4F2D #398A2D #2D678A
split-complementary
#7E2D8A #678A2D #2D8A4F
monochromatic
#2A0F2E #541E5C #7E2D8A #A83CB8 #BF65CD

Accessibility & contrast

On white

7.99
#7E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D8A
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D8A#FFFFFF#000000##FFFFFF
##7E2D8A1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#803C57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2d8a;
/* rgb */ color: rgb(126, 45, 138);
/* oklch */ color: oklch(45.4% 0.162 322.3);
Tailwind
colors: {
  custom: {
    50: '#a66dac',
    500: '#7e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d8a;
$custom-light: #a66dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d8a",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 292.258,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45429,
    "c": 0.16192,
    "h": 322.3
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#7E2D8A
secondary
#6AB360
accent
#DA4D60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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