#78237C#78237C

#78237C is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.160 H 326.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#78237C
RGBrgb(120, 35, 124)
HSLhsl(297, 56%, 31%)
HSVhsv(297, 72%, 49%)
CMYKcmyk(3.2%, 71.8%, 0%, 51.4%)
CIE-LABlab(31.00, 48.14, -32.12)
CIE-LCHlch(31.00, 57.87, 326.29°)
OKLaboklab(42.6% 0.1323 -0.0892)
OKLCHoklch(42.6% 0.16 326)
XYZxyz(11.9846, 6.6512, 19.7174)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78237C #277C23
analogous
#4B237C #78237C #7C2353
triadic
#78237C #7C7823 #237C78
tetradic
#78237C #7C4B23 #277C23 #23537C
square
#78237C #7C4B23 #277C23 #23537C
split-complementary
#78237C #537C23 #237C4B
monochromatic
#1C081D #4A164C #78237C #A630AC #C74DCD

Accessibility & contrast

On white

9.01
#78237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#78237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78237C
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78237C#FFFFFF#000000##FFFFFF
##78237C1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427F
Deuteranopia (green-blind)
#364D7A
Tritanopia (blue-blind)
#7B314D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78237c;
/* rgb */ color: rgb(120, 35, 124);
/* oklch */ color: oklch(42.6% 0.160 326.0);
Tailwind
colors: {
  custom: {
    50: '#a266a2',
    500: '#78237c',
    950: '#000000',
  },
}
SCSS
$custom: #78237c;
$custom-light: #a266a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78237c",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 297.303,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42599,
    "c": 0.15951,
    "h": 326
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#78237C
secondary
#51AF4C
accent
#DF494F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78237C

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

Preview Lab → · Contrast checker → · Palette generator →

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