#78338D#78338D

#78338D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.5% C 0.153 H 317.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#78338D
RGBrgb(120, 51, 141)
HSLhsl(286, 47%, 38%)
HSVhsv(286, 64%, 55%)
CMYKcmyk(14.9%, 63.8%, 0%, 44.7%)
CIE-LABlab(34.57, 44.42, -37.00)
CIE-LCHlch(34.57, 57.82, 320.21°)
OKLaboklab(45.5% 0.1131 -0.1035)
OKLCHoklch(45.5% 0.153 317.5)
XYZxyz(13.7366, 8.2844, 26.0696)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78338D #488D33
analogous
#4B338D #78338D #8D3375
triadic
#78338D #8D7833 #338D78
tetradic
#78338D #8D4B33 #488D33 #33758D
square
#78338D #8D4B33 #488D33 #33758D
split-complementary
#78338D #758D33 #338D4B
monochromatic
#2B1233 #522360 #78338D #9E43BA #B66FCB

Accessibility & contrast

On white

7.90
#78338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78338D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78338D#FFFFFF#000000##FFFFFF
##78338D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#36538B
Tritanopia (blue-blind)
#77435B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #78338d;
/* rgb */ color: rgb(120, 51, 141);
/* oklch */ color: oklch(45.5% 0.153 317.5);
Tailwind
colors: {
  custom: {
    50: '#a26faf',
    500: '#78338d',
    950: '#000000',
  },
}
SCSS
$custom: #78338d;
$custom-light: #a26faf;
$custom-dark: #000000;
JSON
{
  "hex": "#78338d",
  "rgb": {
    "r": 120,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 286,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.15334,
    "h": 317.5
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#78338D
secondary
#7AB369
accent
#D75170
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #78338D

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

Preview Lab → · Contrast checker → · Palette generator →

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