#78237D#78237D

#78237D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.160 H 325.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#78237D
RGBrgb(120, 35, 125)
HSLhsl(297, 56%, 31%)
HSVhsv(297, 72%, 49%)
CMYKcmyk(4%, 72%, 0%, 51%)
CIE-LABlab(31.06, 48.33, -32.65)
CIE-LCHlch(31.06, 58.32, 325.96°)
OKLaboklab(42.66% 0.1323 -0.0907)
OKLCHoklch(42.66% 0.16 325.6)
XYZxyz(12.0482, 6.6766, 20.0522)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78237D #287D23
analogous
#4B237D #78237D #7D2355
triadic
#78237D #7D7823 #237D78
tetradic
#78237D #7D4B23 #287D23 #23557D
square
#78237D #7D4B23 #287D23 #23557D
split-complementary
#78237D #557D23 #237D4B
monochromatic
#1C081D #4A164D #78237D #A630AD #C64DCD

Accessibility & contrast

On white

8.99
#78237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#78237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78237D
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78237D#FFFFFF#000000##FFFFFF
##78237D1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4280
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#7B314D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78237d;
/* rgb */ color: rgb(120, 35, 125);
/* oklch */ color: oklch(42.7% 0.160 325.6);
Tailwind
colors: {
  custom: {
    50: '#a266a3',
    500: '#78237d',
    950: '#000000',
  },
}
SCSS
$custom: #78237d;
$custom-light: #a266a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78237d",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 296.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42661,
    "c": 0.16038,
    "h": 325.6
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#78237D
secondary
#52AF4C
accent
#E04851
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78237D

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

Preview Lab → · Contrast checker → · Palette generator →

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