#78309B#78309B

#78309B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.172 H 312.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#78309B
RGBrgb(120, 48, 155)
HSLhsl(280, 53%, 40%)
HSVhsv(280, 69%, 61%)
CMYKcmyk(22.6%, 69%, 0%, 39.2%)
CIE-LABlab(34.95, 48.88, -44.94)
CIE-LCHlch(34.95, 66.40, 317.41°)
OKLaboklab(46.07% 0.1162 -0.1267)
OKLCHoklch(46.07% 0.172 312.5)
XYZxyz(14.7180, 8.4739, 31.8643)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78309B #539B30
analogous
#43309B #78309B #9B3088
triadic
#78309B #9B7830 #309B78
tetradic
#78309B #9B4330 #539B30 #30889B
square
#78309B #9B4330 #539B30 #30889B
split-complementary
#78309B #889B30 #309B43
monochromatic
#30133E #54226C #78309B #9B43C5 #B472D3

Accessibility & contrast

On white

7.79
#78309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#78309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78309B
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78309B#FFFFFF#000000##FFFFFF
##78309B1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#265499
Tritanopia (blue-blind)
#744662
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #78309b;
/* rgb */ color: rgb(120, 48, 155);
/* oklch */ color: oklch(46.1% 0.172 312.5);
Tailwind
colors: {
  custom: {
    50: '#a26eb9',
    500: '#78309b',
    950: '#000000',
  },
}
SCSS
$custom: #78309b;
$custom-light: #a26eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#78309b",
  "rgb": {
    "r": 120,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 280.374,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46065,
    "c": 0.17192,
    "h": 312.5
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#78309B
secondary
#86BB6C
accent
#DC4C7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #78309B

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

Preview Lab → · Contrast checker → · Palette generator →

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