#78196B#78196B

#78196B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.157 H 334.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#78196B
RGBrgb(120, 25, 107)
HSLhsl(308, 66%, 28%)
HSVhsv(308, 79%, 47%)
CMYKcmyk(0%, 79.2%, 10.8%, 52.9%)
CIE-LABlab(28.77, 48.79, -24.82)
CIE-LCHlch(28.77, 54.74, 333.04°)
OKLaboklab(40.69% 0.142 -0.068)
OKLCHoklch(40.69% 0.157 334.4)
XYZxyz(10.7473, 5.7508, 14.4511)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78196B #197826
analogous
#551978 #78196B #78193B
triadic
#78196B #6B7819 #196B78
tetradic
#78196B #785519 #197826 #193B78
square
#78196B #785519 #197826 #193B78
split-complementary
#78196B #3B7819 #197855
monochromatic
#190517 #450E3E #78196B #AB2498 #D536BF

Accessibility & contrast

On white

9.77
#78196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#78196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78196B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78196B#FFFFFF#000000##FFFFFF
##78196B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#3B4969
Tritanopia (blue-blind)
#7E2241
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78196b;
/* rgb */ color: rgb(120, 25, 107);
/* oklch */ color: oklch(40.7% 0.157 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26195',
    500: '#78196b',
    950: '#000000',
  },
}
SCSS
$custom: #78196b;
$custom-light: #a26195;
$custom-dark: #000000;
JSON
{
  "hex": "#78196b",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 308.211,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40688,
    "c": 0.1574,
    "h": 334.4
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#78196B
secondary
#40AD4F
accent
#E8563F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #78196B

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

Preview Lab → · Contrast checker → · Palette generator →

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