#78257F#78257F

#78257F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.160 H 324.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#78257F
RGBrgb(120, 37, 127)
HSLhsl(295, 55%, 32%)
HSVhsv(295, 71%, 50%)
CMYKcmyk(5.5%, 70.9%, 0%, 50.2%)
CIE-LABlab(31.46, 47.90, -33.27)
CIE-LCHlch(31.46, 58.32, 325.22°)
OKLaboklab(42.99% 0.13 -0.0925)
OKLCHoklch(42.99% 0.16 324.6)
XYZxyz(12.2378, 6.8493, 20.7520)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78257F #2C7F25
analogous
#4B257F #78257F #7F2559
triadic
#78257F #7F7825 #257F78
tetradic
#78257F #7F4B25 #2C7F25 #25597F
square
#78257F #7F4B25 #2C7F25 #25597F
split-complementary
#78257F #597F25 #257F4B
monochromatic
#1E0920 #4B1750 #78257F #A533AE #C352CD

Accessibility & contrast

On white

8.86
#78257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#78257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78257F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78257F#FFFFFF#000000##FFFFFF
##78257F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4482
Deuteranopia (green-blind)
#364D7D
Tritanopia (blue-blind)
#7B344F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #78257f;
/* rgb */ color: rgb(120, 37, 127);
/* oklch */ color: oklch(43.0% 0.160 324.6);
Tailwind
colors: {
  custom: {
    50: '#a267a4',
    500: '#78257f',
    950: '#000000',
  },
}
SCSS
$custom: #78257f;
$custom-light: #a267a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78257f",
  "rgb": {
    "r": 120,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 295.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.1596,
    "h": 324.6
  },
  "luminance": 0.06849
}

Semantic roles & 50–950 ramp

primary
#78257F
secondary
#57B14F
accent
#DE4A55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78257F

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

Preview Lab → · Contrast checker → · Palette generator →

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