#78308D#78308D

#78308D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.158 H 317.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#78308D
RGBrgb(120, 48, 141)
HSLhsl(286, 49%, 37%)
HSVhsv(286, 66%, 55%)
CMYKcmyk(14.9%, 66%, 0%, 44.7%)
CIE-LABlab(34.05, 45.86, -37.84)
CIE-LCHlch(34.05, 59.46, 320.48°)
OKLaboklab(45.13% 0.1169 -0.1059)
OKLCHoklch(45.13% 0.158 317.8)
XYZxyz(13.6097, 8.0306, 26.0273)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78308D #458D30
analogous
#4A308D #78308D #8D3073
triadic
#78308D #8D7830 #308D78
tetradic
#78308D #8D4A30 #458D30 #30738D
square
#78308D #8D4A30 #458D30 #30738D
split-complementary
#78308D #738D30 #308D4A
monochromatic
#2A1132 #51205F #78308D #9F40BB #B66BCD

Accessibility & contrast

On white

8.06
#78308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#78308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78308D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78308D#FFFFFF#000000##FFFFFF
##78308D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B90
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#77415A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #78308d;
/* rgb */ color: rgb(120, 48, 141);
/* oklch */ color: oklch(45.1% 0.158 317.8);
Tailwind
colors: {
  custom: {
    50: '#a26eaf',
    500: '#78308d',
    950: '#000000',
  },
}
SCSS
$custom: #78308d;
$custom-light: #a26eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#78308d",
  "rgb": {
    "r": 120,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 286.452,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45125,
    "c": 0.15775,
    "h": 317.8
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#78308D
secondary
#77B465
accent
#D94F6E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #78308D

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

Preview Lab → · Contrast checker → · Palette generator →

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