#7E2C8C#7E2C8C

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

Color values

HEX#7E2C8C
RGBrgb(126, 44, 140)
HSLhsl(291, 52%, 36%)
HSVhsv(291, 69%, 55%)
CMYKcmyk(10%, 68.6%, 0%, 45.1%)
CIE-LABlab(34.25, 48.93, -36.84)
CIE-LCHlch(34.25, 61.25, 323.03°)
OKLaboklab(45.44% 0.1293 -0.1028)
OKLCHoklch(45.44% 0.165 321.5)
XYZxyz(14.2380, 8.1312, 25.6254)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C8C #3A8C2C
analogous
#4E2C8C #7E2C8C #8C2C6A
triadic
#7E2C8C #8C7E2C #2C8C7E
tetradic
#7E2C8C #8C4E2C #3A8C2C #2C6A8C
square
#7E2C8C #8C4E2C #3A8C2C #2C6A8C
split-complementary
#7E2C8C #6A8C2C #2C8C4E
monochromatic
#2A0F2F #541D5D #7E2C8C #A83BBB #BF64CE

Accessibility & contrast

On white

8.00
#7E2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2C8C
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C8C#FFFFFF#000000##FFFFFF
##7E2C8C1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#7F3C58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2c8c;
/* rgb */ color: rgb(126, 44, 140);
/* oklch */ color: oklch(45.4% 0.165 321.5);
Tailwind
colors: {
  custom: {
    50: '#a66cae',
    500: '#7e2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c8c;
$custom-light: #a66cae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c8c",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 291.25,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.16515,
    "h": 321.5
  },
  "luminance": 0.0813
}

Semantic roles & 50–950 ramp

primary
#7E2C8C
secondary
#6CB55F
accent
#DC4C61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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