#78238C#78238C

#78238C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.174 H 319.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#78238C
RGBrgb(120, 35, 140)
HSLhsl(289, 60%, 34%)
HSVhsv(289, 75%, 55%)
CMYKcmyk(14.3%, 75%, 0%, 45.1%)
CIE-LABlab(32.01, 51.21, -40.48)
CIE-LCHlch(32.01, 65.27, 321.67°)
OKLaboklab(43.65% 0.1315 -0.1136)
OKLCHoklch(43.65% 0.174 319.2)
XYZxyz(13.0798, 7.0892, 25.4852)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78238C #378C23
analogous
#43238C #78238C #8C236C
triadic
#78238C #8C7823 #238C78
tetradic
#78238C #8C4323 #378C23 #236C8C
square
#78238C #8C4323 #378C23 #236C8C
split-complementary
#78238C #6C8C23 #238C43
monochromatic
#240B2A #4E175B #78238C #A22FBD #BC55D4

Accessibility & contrast

On white

8.69
#78238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#78238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78238C
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78238C#FFFFFF#000000##FFFFFF
##78238C1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2B4E8A
Tritanopia (blue-blind)
#783856
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78238c;
/* rgb */ color: rgb(120, 35, 140);
/* oklch */ color: oklch(43.6% 0.174 319.2);
Tailwind
colors: {
  custom: {
    50: '#a267ae',
    500: '#78238c',
    950: '#000000',
  },
}
SCSS
$custom: #78238c;
$custom-light: #a267ae;
$custom-dark: #000000;
JSON
{
  "hex": "#78238c",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 288.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.17376,
    "h": 319.2
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#78238C
secondary
#66B852
accent
#E34563
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #78238C

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

Preview Lab → · Contrast checker → · Palette generator →

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