#78226F#78226F

#78226F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.7% C 0.150 H 332.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#78226F
RGBrgb(120, 34, 111)
HSLhsl(306, 56%, 30%)
HSVhsv(306, 72%, 47%)
CMYKcmyk(0%, 71.7%, 7.5%, 52.9%)
CIE-LABlab(30.12, 46.23, -25.27)
CIE-LCHlch(30.12, 52.69, 331.34°)
OKLaboklab(41.73% 0.1329 -0.0693)
OKLCHoklch(41.73% 0.15 332.4)
XYZxyz(11.1870, 6.2857, 15.6599)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78226F #22782B
analogous
#562278 #78226F #782244
triadic
#78226F #6F7822 #226F78
tetradic
#78226F #785622 #22782B #224478
square
#78226F #785622 #22782B #224478
split-complementary
#78226F #447822 #227856
monochromatic
#190717 #481443 #78226F #A8309B #CB49BE

Accessibility & contrast

On white

9.30
#78226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#78226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78226F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78226F#FFFFFF#000000##FFFFFF
##78226F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#7D2A45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #78226f;
/* rgb */ color: rgb(120, 34, 111);
/* oklch */ color: oklch(41.7% 0.150 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26598',
    500: '#78226f',
    950: '#000000',
  },
}
SCSS
$custom: #78226f;
$custom-light: #a26598;
$custom-dark: #000000;
JSON
{
  "hex": "#78226f",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 306.279,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41728,
    "c": 0.14985,
    "h": 332.4
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#78226F
secondary
#4BAB55
accent
#DF5849
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #78226F

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

Preview Lab → · Contrast checker → · Palette generator →

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