#78237F#78237F

#78237F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.162 H 324.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#78237F
RGBrgb(120, 35, 127)
HSLhsl(295, 57%, 32%)
HSVhsv(295, 72%, 50%)
CMYKcmyk(5.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(31.18, 48.70, -33.71)
CIE-LCHlch(31.18, 59.23, 325.31°)
OKLaboklab(42.79% 0.1322 -0.0938)
OKLCHoklch(42.79% 0.162 324.6)
XYZxyz(12.1772, 6.7282, 20.7318)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78237F #2A7F23
analogous
#4A237F #78237F #7F2358
triadic
#78237F #7F7823 #237F78
tetradic
#78237F #7F4A23 #2A7F23 #23587F
square
#78237F #7F4A23 #2A7F23 #23587F
split-complementary
#78237F #587F23 #237F4A
monochromatic
#1D091F #4B164F #78237F #A530AF #C54ECE

Accessibility & contrast

On white

8.95
#78237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#78237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78237F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78237F#FFFFFF#000000##FFFFFF
##78237F1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094382
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#7B324E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78237f;
/* rgb */ color: rgb(120, 35, 127);
/* oklch */ color: oklch(42.8% 0.162 324.6);
Tailwind
colors: {
  custom: {
    50: '#a267a4',
    500: '#78237f',
    950: '#000000',
  },
}
SCSS
$custom: #78237f;
$custom-light: #a267a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78237f",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 295.435,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42787,
    "c": 0.16213,
    "h": 324.6
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#78237F
secondary
#54B14C
accent
#E04853
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78237F

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

Preview Lab → · Contrast checker → · Palette generator →

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