#78308B#78308B

#78308B is a dark, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.156 H 318.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#78308B
RGBrgb(120, 48, 139)
HSLhsl(287, 49%, 37%)
HSVhsv(287, 65%, 55%)
CMYKcmyk(13.7%, 65.5%, 0%, 45.5%)
CIE-LABlab(33.92, 45.45, -36.80)
CIE-LCHlch(33.92, 58.48, 321.00°)
OKLaboklab(45% 0.1169 -0.1029)
OKLCHoklch(45% 0.156 318.6)
XYZxyz(13.4623, 7.9716, 25.2506)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78308B #438B30
analogous
#4B308B #78308B #8B3071
triadic
#78308B #8B7830 #308B78
tetradic
#78308B #8B4B30 #438B30 #30718B
square
#78308B #8B4B30 #438B30 #30718B
split-complementary
#78308B #718B30 #308B4B
monochromatic
#291130 #51205E #78308B #9F40B8 #B76ACC

Accessibility & contrast

On white

8.09
#78308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#78308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78308B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78308B#FFFFFF#000000##FFFFFF
##78308B1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#784059
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #78308b;
/* rgb */ color: rgb(120, 48, 139);
/* oklch */ color: oklch(45.0% 0.156 318.6);
Tailwind
colors: {
  custom: {
    50: '#a26ead',
    500: '#78308b',
    950: '#000000',
  },
}
SCSS
$custom: #78308b;
$custom-light: #a26ead;
$custom-dark: #000000;
JSON
{
  "hex": "#78308b",
  "rgb": {
    "r": 120,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 287.473,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.15574,
    "h": 318.6
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#78308B
secondary
#74B364
accent
#D8506C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #78308B

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

Preview Lab → · Contrast checker → · Palette generator →

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