#78277D#78277D

#78277D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.155 H 325.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#78277D
RGBrgb(120, 39, 125)
HSLhsl(297, 52%, 32%)
HSVhsv(297, 69%, 49%)
CMYKcmyk(4%, 68.8%, 0%, 51%)
CIE-LABlab(31.64, 46.70, -31.73)
CIE-LCHlch(31.64, 56.46, 325.80°)
OKLaboklab(43.08% 0.1277 -0.0881)
OKLCHoklch(43.08% 0.155 325.4)
XYZxyz(12.1726, 6.9255, 20.0937)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78277D #2C7D27
analogous
#4D277D #78277D #7D2757
triadic
#78277D #7D7827 #277D78
tetradic
#78277D #7D4D27 #2C7D27 #27577D
square
#78277D #7D4D27 #2C7D27 #27577D
split-complementary
#78277D #577D27 #277D4D
monochromatic
#1E0A20 #4B184E #78277D #A536AC #C355CA

Accessibility & contrast

On white

8.81
#78277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#78277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78277D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78277D#FFFFFF#000000##FFFFFF
##78277D1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#7B344F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #78277d;
/* rgb */ color: rgb(120, 39, 125);
/* oklch */ color: oklch(43.1% 0.155 325.4);
Tailwind
colors: {
  custom: {
    50: '#a268a3',
    500: '#78277d',
    950: '#000000',
  },
}
SCSS
$custom: #78277d;
$custom-light: #a268a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78277d",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 296.512,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43076,
    "c": 0.15516,
    "h": 325.4
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#78277D
secondary
#57AF51
accent
#DC4C54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #78277D

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

Preview Lab → · Contrast checker → · Palette generator →

#78277D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva