#78309A#78309A

#78309A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.171 H 312.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#78309A
RGBrgb(120, 48, 154)
HSLhsl(281, 52%, 40%)
HSVhsv(281, 69%, 60%)
CMYKcmyk(22.1%, 68.8%, 0%, 39.6%)
CIE-LABlab(34.88, 48.66, -44.44)
CIE-LCHlch(34.88, 65.90, 317.60°)
OKLaboklab(46% 0.1163 -0.1253)
OKLCHoklch(46% 0.171 312.9)
XYZxyz(14.6344, 8.4405, 31.4239)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78309A #529A30
analogous
#43309A #78309A #9A3087
triadic
#78309A #9A7830 #309A78
tetradic
#78309A #9A4330 #529A30 #30879A
square
#78309A #9A4330 #529A30 #30879A
split-complementary
#78309A #879A30 #309A43
monochromatic
#2F133D #54216B #78309A #9B43C4 #B472D3

Accessibility & contrast

On white

7.81
#78309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78309A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78309A#FFFFFF#000000##FFFFFF
##78309A1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#285498
Tritanopia (blue-blind)
#744661
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #78309a;
/* rgb */ color: rgb(120, 48, 154);
/* oklch */ color: oklch(46.0% 0.171 312.9);
Tailwind
colors: {
  custom: {
    50: '#a26eb8',
    500: '#78309a',
    950: '#000000',
  },
}
SCSS
$custom: #78309a;
$custom-light: #a26eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#78309a",
  "rgb": {
    "r": 120,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 280.755,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.1709,
    "h": 312.9
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#78309A
secondary
#85BB6B
accent
#DC4C7A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #78309A

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

Preview Lab → · Contrast checker → · Palette generator →

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