#78198E#78198E

#78198E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 43.0% C 0.186 H 318.9°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#78198E
RGBrgb(120, 25, 142)
HSLhsl(289, 70%, 33%)
HSVhsv(289, 82%, 56%)
CMYKcmyk(15.5%, 82.4%, 0%, 44.3%)
CIE-LABlab(30.98, 54.96, -43.38)
CIE-LCHlch(30.98, 70.02, 321.72°)
OKLaboklab(42.96% 0.1401 -0.122)
OKLCHoklch(42.96% 0.186 318.9)
XYZxyz(12.9752, 6.6420, 26.1845)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78198E #2F8E19
analogous
#3D198E #78198E #8E1969
triadic
#78198E #8E7819 #198E78
tetradic
#78198E #8E3D19 #2F8E19 #19698E
square
#78198E #8E3D19 #2F8E19 #19698E
split-complementary
#78198E #698E19 #198E3D
monochromatic
#200726 #4C105A #78198E #A422C2 #C143DE

Accessibility & contrast

On white

9.02
#78198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#78198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78198E
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78198E#FFFFFF#000000##FFFFFF
##78198E1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#224C8C
Tritanopia (blue-blind)
#783455
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78198e;
/* rgb */ color: rgb(120, 25, 142);
/* oklch */ color: oklch(43.0% 0.186 318.9);
Tailwind
colors: {
  custom: {
    50: '#a363b0',
    500: '#78198e',
    950: '#000000',
  },
}
SCSS
$custom: #78198e;
$custom-light: #a363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78198e",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 288.718,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42958,
    "c": 0.18574,
    "h": 318.9
  },
  "luminance": 0.06641
}

Semantic roles & 50–950 ramp

primary
#78198E
secondary
#5BBF44
accent
#ED3B5C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78198E

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

Preview Lab → · Contrast checker → · Palette generator →

#78198E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva