#7E2C8A#7E2C8A

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

Color values

HEX#7E2C8A
RGBrgb(126, 44, 138)
HSLhsl(292, 52%, 36%)
HSVhsv(292, 68%, 54%)
CMYKcmyk(8.7%, 68.1%, 0%, 45.9%)
CIE-LABlab(34.13, 48.54, -35.79)
CIE-LCHlch(34.13, 60.31, 323.59°)
OKLaboklab(45.32% 0.1293 -0.0998)
OKLCHoklch(45.32% 0.163 322.3)
XYZxyz(14.0918, 8.0727, 24.8558)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C8A #388A2C
analogous
#4F2C8A #7E2C8A #8A2C67
triadic
#7E2C8A #8A7E2C #2C8A7E
tetradic
#7E2C8A #8A4F2C #388A2C #2C678A
square
#7E2C8A #8A4F2C #388A2C #2C678A
split-complementary
#7E2C8A #678A2C #2C8A4F
monochromatic
#290E2D #541D5C #7E2C8A #A83BB8 #C063CD

Accessibility & contrast

On white

8.03
#7E2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C8A#FFFFFF#000000##FFFFFF
##7E2C8A1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#395388
Tritanopia (blue-blind)
#803C57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2c8a;
/* rgb */ color: rgb(126, 44, 138);
/* oklch */ color: oklch(45.3% 0.163 322.3);
Tailwind
colors: {
  custom: {
    50: '#a66cac',
    500: '#7e2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c8a;
$custom-light: #a66cac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c8a",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 292.34,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45317,
    "c": 0.16329,
    "h": 322.3
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#7E2C8A
secondary
#69B45E
accent
#DB4D5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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