#78237B#78237B

#78237B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.159 H 326.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#78237B
RGBrgb(120, 35, 123)
HSLhsl(298, 56%, 31%)
HSVhsv(298, 72%, 48%)
CMYKcmyk(2.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(30.94, 47.96, -31.58)
CIE-LCHlch(30.94, 57.42, 326.63°)
OKLaboklab(42.54% 0.1323 -0.0876)
OKLCHoklch(42.54% 0.159 326.5)
XYZxyz(11.9217, 6.6260, 19.3861)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78237B #267B23
analogous
#4C237B #78237B #7B2352
triadic
#78237B #7B7823 #237B78
tetradic
#78237B #7B4C23 #267B23 #23527B
square
#78237B #7B4C23 #267B23 #23527B
split-complementary
#78237B #527B23 #237B4C
monochromatic
#1B081C #4A154B #78237B #A631AB #C84CCC

Accessibility & contrast

On white

9.03
#78237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78237B
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78237B#FFFFFF#000000##FFFFFF
##78237B1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427D
Deuteranopia (green-blind)
#374D79
Tritanopia (blue-blind)
#7B314C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78237b;
/* rgb */ color: rgb(120, 35, 123);
/* oklch */ color: oklch(42.5% 0.159 326.5);
Tailwind
colors: {
  custom: {
    50: '#a266a1',
    500: '#78237b',
    950: '#000000',
  },
}
SCSS
$custom: #78237b;
$custom-light: #a266a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78237b",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 297.955,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42537,
    "c": 0.15864,
    "h": 326.5
  },
  "luminance": 0.06625
}

Semantic roles & 50–950 ramp

primary
#78237B
secondary
#50AE4C
accent
#DF494E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78237B

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

Preview Lab → · Contrast checker → · Palette generator →

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