#7D278C#7D278C

#7D278C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.171 H 321.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7D278C
RGBrgb(125, 39, 140)
HSLhsl(291, 56%, 35%)
HSVhsv(291, 72%, 55%)
CMYKcmyk(10.7%, 72.1%, 0%, 45.1%)
CIE-LABlab(33.36, 50.77, -38.27)
CIE-LCHlch(33.36, 63.58, 322.99°)
OKLaboklab(44.77% 0.1336 -0.107)
OKLCHoklch(44.77% 0.171 321.3)
XYZxyz(13.9161, 7.7052, 25.5601)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D278C #368C27
analogous
#4A278C #7D278C #8C2769
triadic
#7D278C #8C7D27 #278C7D
tetradic
#7D278C #8C4A27 #368C27 #27698C
square
#7D278C #8C4A27 #368C27 #27698C
split-complementary
#7D278C #698C27 #278C4A
monochromatic
#280C2C #521A5C #7D278C #A834BC #C05CD2

Accessibility & contrast

On white

8.27
#7D278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D278C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D278C#FFFFFF#000000##FFFFFF
##7D278C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#7E3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d278c;
/* rgb */ color: rgb(125, 39, 140);
/* oklch */ color: oklch(44.8% 0.171 321.3);
Tailwind
colors: {
  custom: {
    50: '#a66aae',
    500: '#7d278c',
    950: '#000000',
  },
}
SCSS
$custom: #7d278c;
$custom-light: #a66aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d278c",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 291.089,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4477,
    "c": 0.17115,
    "h": 321.3
  },
  "luminance": 0.07704
}

Semantic roles & 50–950 ramp

primary
#7D278C
secondary
#66B758
accent
#E0485F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D278C

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

Preview Lab → · Contrast checker → · Palette generator →

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