#78338E#78338E

#78338E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.154 H 317.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#78338E
RGBrgb(120, 51, 142)
HSLhsl(285, 47%, 38%)
HSVhsv(285, 64%, 56%)
CMYKcmyk(15.5%, 64.1%, 0%, 44.3%)
CIE-LABlab(34.63, 44.64, -37.52)
CIE-LCHlch(34.63, 58.31, 319.95°)
OKLaboklab(45.57% 0.1131 -0.105)
OKLCHoklch(45.57% 0.154 317.1)
XYZxyz(13.8113, 8.3143, 26.4632)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78338E #498E33
analogous
#4B338E #78338E #8E3376
triadic
#78338E #8E7833 #338E78
tetradic
#78338E #8E4B33 #498E33 #33768E
square
#78338E #8E4B33 #498E33 #33768E
split-complementary
#78338E #768E33 #338E4B
monochromatic
#2C1334 #522361 #78338E #9E43BB #B570CC

Accessibility & contrast

On white

7.89
#78338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#78338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78338E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78338E#FFFFFF#000000##FFFFFF
##78338E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164D91
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#77435C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #78338e;
/* rgb */ color: rgb(120, 51, 142);
/* oklch */ color: oklch(45.6% 0.154 317.1);
Tailwind
colors: {
  custom: {
    50: '#a26faf',
    500: '#78338e',
    950: '#000000',
  },
}
SCSS
$custom: #78338e;
$custom-light: #a26faf;
$custom-dark: #000000;
JSON
{
  "hex": "#78338e",
  "rgb": {
    "r": 120,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 285.495,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45566,
    "c": 0.15436,
    "h": 317.1
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#78338E
secondary
#7BB469
accent
#D75171
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #78338E

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

Preview Lab → · Contrast checker → · Palette generator →

#78338E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva