#78226A#78226A

#78226A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.5% C 0.146 H 335.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#78226A
RGBrgb(120, 34, 106)
HSLhsl(310, 56%, 30%)
HSVhsv(310, 72%, 47%)
CMYKcmyk(0%, 71.7%, 11.7%, 52.9%)
CIE-LABlab(29.86, 45.40, -22.48)
CIE-LCHlch(29.86, 50.66, 333.66°)
OKLaboklab(41.45% 0.1324 -0.0613)
OKLCHoklch(41.45% 0.146 335.1)
XYZxyz(10.9194, 6.1787, 14.2504)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78226A #227830
analogous
#5B2278 #78226A #78223F
triadic
#78226A #6A7822 #226A78
tetradic
#78226A #785B22 #227830 #223F78
square
#78226A #785B22 #227830 #223F78
split-complementary
#78226A #3F7822 #22785B
monochromatic
#190716 #481440 #78226A #A83094 #CB49B6

Accessibility & contrast

On white

9.39
#78226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#78226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78226A
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78226A#FFFFFF#000000##FFFFFF
##78226A1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223E6C
Deuteranopia (green-blind)
#3F4B68
Tritanopia (blue-blind)
#7E2843
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78226a;
/* rgb */ color: rgb(120, 34, 106);
/* oklch */ color: oklch(41.5% 0.146 335.1);
Tailwind
colors: {
  custom: {
    50: '#a26595',
    500: '#78226a',
    950: '#000000',
  },
}
SCSS
$custom: #78226a;
$custom-light: #a26595;
$custom-dark: #000000;
JSON
{
  "hex": "#78226a",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 309.767,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.14587,
    "h": 335.1
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#78226A
secondary
#4BAB5A
accent
#DF6149
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #78226A

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

Preview Lab → · Contrast checker → · Palette generator →

#78226A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva