#7E278C#7E278C

#7E278C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.172 H 321.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7E278C
RGBrgb(126, 39, 140)
HSLhsl(292, 56%, 35%)
HSVhsv(292, 72%, 55%)
CMYKcmyk(10%, 72.1%, 0%, 45.1%)
CIE-LABlab(33.52, 50.99, -38.00)
CIE-LCHlch(33.52, 63.60, 323.30°)
OKLaboklab(44.92% 0.1348 -0.1062)
OKLCHoklch(44.92% 0.172 321.8)
XYZxyz(14.0628, 7.7809, 25.5670)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E278C #358C27
analogous
#4B278C #7E278C #8C2768
triadic
#7E278C #8C7E27 #278C7E
tetradic
#7E278C #8C4B27 #358C27 #27688C
square
#7E278C #8C4B27 #358C27 #27688C
split-complementary
#7E278C #688C27 #278C4B
monochromatic
#280C2C #531A5C #7E278C #A934BC #C15CD2

Accessibility & contrast

On white

8.22
#7E278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E278C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E278C#FFFFFF#000000##FFFFFF
##7E278C1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#7F3957
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e278c;
/* rgb */ color: rgb(126, 39, 140);
/* oklch */ color: oklch(44.9% 0.172 321.8);
Tailwind
colors: {
  custom: {
    50: '#a76aae',
    500: '#7e278c',
    950: '#000000',
  },
}
SCSS
$custom: #7e278c;
$custom-light: #a76aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e278c",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 291.683,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44917,
    "c": 0.17161,
    "h": 321.8
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#7E278C
secondary
#65B758
accent
#E0485D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E278C

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

Preview Lab → · Contrast checker → · Palette generator →

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