#78257E#78257E

#78257E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.159 H 325.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#78257E
RGBrgb(120, 37, 126)
HSLhsl(296, 55%, 32%)
HSVhsv(296, 71%, 49%)
CMYKcmyk(4.8%, 70.6%, 0%, 50.6%)
CIE-LABlab(31.40, 47.72, -32.74)
CIE-LCHlch(31.40, 57.87, 325.55°)
OKLaboklab(42.93% 0.1301 -0.091)
OKLCHoklch(42.93% 0.159 325)
XYZxyz(12.1729, 6.8233, 20.4105)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78257E #2B7E25
analogous
#4C257E #78257E #7E2558
triadic
#78257E #7E7825 #257E78
tetradic
#78257E #7E4C25 #2B7E25 #25587E
square
#78257E #7E4C25 #2B7E25 #25587E
split-complementary
#78257E #587E25 #257E4C
monochromatic
#1E091F #4B174F #78257E #A533AD #C451CC

Accessibility & contrast

On white

8.88
#78257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#78257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78257E
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78257E#FFFFFF#000000##FFFFFF
##78257E1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#7B334E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #78257e;
/* rgb */ color: rgb(120, 37, 126);
/* oklch */ color: oklch(42.9% 0.159 325.0);
Tailwind
colors: {
  custom: {
    50: '#a267a4',
    500: '#78257e',
    950: '#000000',
  },
}
SCSS
$custom: #78257e;
$custom-light: #a267a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78257e",
  "rgb": {
    "r": 120,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 295.955,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42926,
    "c": 0.15871,
    "h": 325
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#78257E
secondary
#55B04F
accent
#DE4A54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78257E

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

Preview Lab → · Contrast checker → · Palette generator →

#78257E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva