#78198F#78198F

#78198F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.187 H 318.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#78198F
RGBrgb(120, 25, 143)
HSLhsl(288, 70%, 33%)
HSVhsv(288, 83%, 56%)
CMYKcmyk(16.1%, 82.5%, 0%, 43.9%)
CIE-LABlab(31.05, 55.15, -43.88)
CIE-LCHlch(31.05, 70.48, 321.49°)
OKLaboklab(43.03% 0.1399 -0.1235)
OKLCHoklch(43.03% 0.187 318.6)
XYZxyz(13.0506, 6.6721, 26.5817)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78198F #308F19
analogous
#3D198F #78198F #8F196B
triadic
#78198F #8F7819 #198F78
tetradic
#78198F #8F3D19 #308F19 #196B8F
square
#78198F #8F3D19 #308F19 #196B8F
split-complementary
#78198F #6B8F19 #198F3D
monochromatic
#210727 #4C105B #78198F #A422C3 #C044DE

Accessibility & contrast

On white

9.00
#78198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78198F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78198F#FFFFFF#000000##FFFFFF
##78198F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#773455
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78198f;
/* rgb */ color: rgb(120, 25, 143);
/* oklch */ color: oklch(43.0% 0.187 318.6);
Tailwind
colors: {
  custom: {
    50: '#a363b0',
    500: '#78198f',
    950: '#000000',
  },
}
SCSS
$custom: #78198f;
$custom-light: #a363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78198f",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 288.305,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43031,
    "c": 0.18659,
    "h": 318.6
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#78198F
secondary
#5CBF44
accent
#ED3B5E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #78198F

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

Preview Lab → · Contrast checker → · Palette generator →

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