#78146B#78146B

#78146B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.3% C 0.162 H 334.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#78146B
RGBrgb(120, 20, 107)
HSLhsl(308, 71%, 27%)
HSVhsv(308, 83%, 47%)
CMYKcmyk(0%, 83.3%, 10.8%, 52.9%)
CIE-LABlab(28.26, 50.26, -25.63)
CIE-LCHlch(28.26, 56.42, 332.98°)
OKLaboklab(40.32% 0.1463 -0.0703)
OKLCHoklch(40.32% 0.162 334.4)
XYZxyz(10.6499, 5.5559, 14.4186)
Luminance0.0556 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78146B #147821
analogous
#531478 #78146B #781439
triadic
#78146B #6B7814 #146B78
tetradic
#78146B #785314 #147821 #143978
square
#78146B #785314 #147821 #143978
split-complementary
#78146B #397814 #147853
monochromatic
#1A0417 #440B3C #78146B #AC1D9A #DC2BC5

Accessibility & contrast

On white

9.95
#78146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#78146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78146B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78146B#FFFFFF#000000##FFFFFF
##78146B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12396D
Deuteranopia (green-blind)
#394869
Tritanopia (blue-blind)
#7E1F3F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78146b;
/* rgb */ color: rgb(120, 20, 107);
/* oklch */ color: oklch(40.3% 0.162 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26095',
    500: '#78146b',
    950: '#000000',
  },
}
SCSS
$custom: #78146b;
$custom-light: #a26095;
$custom-dark: #000000;
JSON
{
  "hex": "#78146b",
  "rgb": {
    "r": 120,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 307.8,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40321,
    "c": 0.1623,
    "h": 334.4
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#78146B
secondary
#3AAE49
accent
#EE513A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78146B

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

Preview Lab → · Contrast checker → · Palette generator →

#78146B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva