#78238F#78238F

#78238F is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.176 H 318.0°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#78238F
RGBrgb(120, 35, 143)
HSLhsl(287, 61%, 35%)
HSVhsv(287, 76%, 56%)
CMYKcmyk(16.1%, 75.5%, 0%, 43.9%)
CIE-LABlab(32.21, 51.80, -42.01)
CIE-LCHlch(32.21, 66.70, 320.96°)
OKLaboklab(43.85% 0.1312 -0.1181)
OKLCHoklch(43.85% 0.176 318)
XYZxyz(13.3040, 7.1789, 26.6662)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78238F #3A8F23
analogous
#42238F #78238F #8F2370
triadic
#78238F #8F7823 #238F78
tetradic
#78238F #8F4223 #3A8F23 #23708F
square
#78238F #8F4223 #3A8F23 #23708F
split-complementary
#78238F #708F23 #238F42
monochromatic
#250B2D #4F175E #78238F #A12FC0 #BB57D6

Accessibility & contrast

On white

8.62
#78238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#78238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78238F
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78238F#FFFFFF#000000##FFFFFF
##78238F1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#284E8D
Tritanopia (blue-blind)
#773957
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #78238f;
/* rgb */ color: rgb(120, 35, 143);
/* oklch */ color: oklch(43.9% 0.176 318.0);
Tailwind
colors: {
  custom: {
    50: '#a367b0',
    500: '#78238f',
    950: '#000000',
  },
}
SCSS
$custom: #78238f;
$custom-light: #a367b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78238f",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 287.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43852,
    "c": 0.17649,
    "h": 318
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#78238F
secondary
#6ABA54
accent
#E44466
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #78238F

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

Preview Lab → · Contrast checker → · Palette generator →

#78238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva