#7D278B#7D278B

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

Color values

HEX#7D278B
RGBrgb(125, 39, 139)
HSLhsl(292, 56%, 35%)
HSVhsv(292, 72%, 55%)
CMYKcmyk(10.1%, 71.9%, 0%, 45.5%)
CIE-LABlab(33.30, 50.57, -37.75)
CIE-LCHlch(33.30, 63.11, 323.26°)
OKLaboklab(44.71% 0.1336 -0.1055)
OKLCHoklch(44.71% 0.17 321.7)
XYZxyz(13.8427, 7.6758, 25.1735)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D278B #358B27
analogous
#4B278B #7D278B #8B2767
triadic
#7D278B #8B7D27 #278B7D
tetradic
#7D278B #8B4B27 #358B27 #27678B
square
#7D278B #8B4B27 #358B27 #27678B
split-complementary
#7D278B #678B27 #278B4B
monochromatic
#270C2B #521A5B #7D278B #A834BB #C15BD1

Accessibility & contrast

On white

8.28
#7D278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D278B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D278B#FFFFFF#000000##FFFFFF
##7D278B1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#345189
Tritanopia (blue-blind)
#7E3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d278b;
/* rgb */ color: rgb(125, 39, 139);
/* oklch */ color: oklch(44.7% 0.170 321.7);
Tailwind
colors: {
  custom: {
    50: '#a66aad',
    500: '#7d278b',
    950: '#000000',
  },
}
SCSS
$custom: #7d278b;
$custom-light: #a66aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d278b",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 291.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44705,
    "c": 0.17025,
    "h": 321.7
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#7D278B
secondary
#65B658
accent
#DF485D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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