#782286#782286

#782286 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.170 H 321.7°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#782286
RGBrgb(120, 34, 134)
HSLhsl(292, 60%, 33%)
HSVhsv(292, 75%, 53%)
CMYKcmyk(10.4%, 74.6%, 0%, 47.5%)
CIE-LABlab(31.48, 50.41, -37.60)
CIE-LCHlch(31.48, 62.89, 323.28°)
OKLaboklab(43.15% 0.133 -0.1051)
OKLCHoklch(43.15% 0.17 321.7)
XYZxyz(12.6204, 6.8591, 23.2088)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782286 #308622
analogous
#462286 #782286 #862262
triadic
#782286 #867822 #228678
tetradic
#782286 #864622 #308622 #226286
square
#782286 #864622 #308622 #226286
split-complementary
#782286 #628622 #228646
monochromatic
#210924 #4C1655 #782286 #A42EB7 #C050D3

Accessibility & contrast

On white

8.85
#782286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#782286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782286
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782286#FFFFFF#000000##FFFFFF
##7822861.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#2F4D84
Tritanopia (blue-blind)
#793552
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782286;
/* rgb */ color: rgb(120, 34, 134);
/* oklch */ color: oklch(43.1% 0.170 321.7);
Tailwind
colors: {
  custom: {
    50: '#a266aa',
    500: '#782286',
    950: '#000000',
  },
}
SCSS
$custom: #782286;
$custom-light: #a266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#782286",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 291.6,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43145,
    "c": 0.16954,
    "h": 321.7
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#782286
secondary
#5CB64E
accent
#E3455B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #782286

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

Preview Lab → · Contrast checker → · Palette generator →

#782286 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva