#7C278D#7C278D

#7C278D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.172 H 320.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7C278D
RGBrgb(124, 39, 141)
HSLhsl(290, 57%, 35%)
HSVhsv(290, 72%, 55%)
CMYKcmyk(12.1%, 72.3%, 0%, 44.7%)
CIE-LABlab(33.26, 50.73, -39.05)
CIE-LCHlch(33.26, 64.02, 322.41°)
OKLaboklab(44.69% 0.1323 -0.1093)
OKLCHoklch(44.69% 0.172 320.4)
XYZxyz(13.8448, 7.6599, 25.9434)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C278D #388D27
analogous
#49278D #7C278D #8D276B
triadic
#7C278D #8D7C27 #278D7C
tetradic
#7C278D #8D4927 #388D27 #276B8D
square
#7C278D #8D4927 #388D27 #276B8D
split-complementary
#7C278D #6B8D27 #278D49
monochromatic
#280C2D #521A5D #7C278D #A634BD #BE5CD2

Accessibility & contrast

On white

8.29
#7C278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C278D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C278D#FFFFFF#000000##FFFFFF
##7C278D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#7D3A57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c278d;
/* rgb */ color: rgb(124, 39, 141);
/* oklch */ color: oklch(44.7% 0.172 320.4);
Tailwind
colors: {
  custom: {
    50: '#a569af',
    500: '#7c278d',
    950: '#000000',
  },
}
SCSS
$custom: #7c278d;
$custom-light: #a569af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c278d",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 290,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44689,
    "c": 0.17161,
    "h": 320.4
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#7C278D
secondary
#68B759
accent
#E04861
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C278D

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

Preview Lab → · Contrast checker → · Palette generator →

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