#78286F#78286F

#78286F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.4% C 0.142 H 332.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#78286F
RGBrgb(120, 40, 111)
HSLhsl(307, 50%, 31%)
HSVhsv(307, 67%, 47%)
CMYKcmyk(0%, 66.7%, 7.5%, 52.9%)
CIE-LABlab(31.02, 43.73, -23.86)
CIE-LCHlch(31.02, 49.81, 331.38°)
OKLaboklab(42.38% 0.1256 -0.0653)
OKLCHoklch(42.38% 0.142 332.5)
XYZxyz(11.3738, 6.6592, 15.7222)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78286F #287831
analogous
#592878 #78286F #782847
triadic
#78286F #6F7828 #286F78
tetradic
#78286F #785928 #287831 #284778
square
#78286F #785928 #287831 #284778
split-complementary
#78286F #477828 #287859
monochromatic
#1C091A #4A1945 #78286F #A63799 #C654B9

Accessibility & contrast

On white

9.01
#78286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#78286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78286F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78286F#FFFFFF#000000##FFFFFF
##78286F1.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)
#254271
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#7D2F47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78286f;
/* rgb */ color: rgb(120, 40, 111);
/* oklch */ color: oklch(42.4% 0.142 332.5);
Tailwind
colors: {
  custom: {
    50: '#a26898',
    500: '#78286f',
    950: '#000000',
  },
}
SCSS
$custom: #78286f;
$custom-light: #a26898;
$custom-dark: #000000;
JSON
{
  "hex": "#78286f",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 306.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42378,
    "c": 0.14154,
    "h": 332.5
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

primary
#78286F
secondary
#52AA5C
accent
#DA5E4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #78286F

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

Preview Lab → · Contrast checker → · Palette generator →

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