#782898#782898

#782898 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.179 H 314.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#782898
RGBrgb(120, 40, 152)
HSLhsl(283, 58%, 38%)
HSVhsv(283, 74%, 60%)
CMYKcmyk(21.1%, 73.7%, 0%, 40.4%)
CIE-LABlab(33.52, 51.70, -45.42)
CIE-LCHlch(33.52, 68.82, 318.70°)
OKLaboklab(44.98% 0.1251 -0.1281)
OKLCHoklch(44.98% 0.179 314.3)
XYZxyz(14.1711, 7.7781, 30.4545)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782898 #489828
analogous
#402898 #782898 #982880
triadic
#782898 #987828 #289878
tetradic
#782898 #984028 #489828 #288098
square
#782898 #984028 #489828 #288098
split-complementary
#782898 #809828 #289840
monochromatic
#2B0F37 #521B68 #782898 #9E35C8 #B664D6

Accessibility & contrast

On white

8.22
#782898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#782898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782898
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782898#FFFFFF#000000##FFFFFF
##7828981.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#75405E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782898;
/* rgb */ color: rgb(120, 40, 152);
/* oklch */ color: oklch(45.0% 0.179 314.3);
Tailwind
colors: {
  custom: {
    50: '#a36ab7',
    500: '#782898',
    950: '#000000',
  },
}
SCSS
$custom: #782898;
$custom-light: #a36ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#782898",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 282.857,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44976,
    "c": 0.17907,
    "h": 314.3
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#782898
secondary
#7ABC60
accent
#E24673
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782898

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

Preview Lab → · Contrast checker → · Palette generator →

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