#782874#782874

#782874 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.7% C 0.146 H 329.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#782874
RGBrgb(120, 40, 116)
HSLhsl(303, 50%, 31%)
HSVhsv(303, 67%, 47%)
CMYKcmyk(0%, 66.7%, 3.3%, 52.9%)
CIE-LABlab(31.28, 44.61, -26.62)
CIE-LCHlch(31.28, 51.95, 329.18°)
OKLaboklab(42.66% 0.1261 -0.0733)
OKLCHoklch(42.66% 0.146 329.8)
XYZxyz(11.6568, 6.7724, 17.2129)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782874 #28782C
analogous
#542878 #782874 #78284C
triadic
#782874 #747828 #287478
tetradic
#782874 #785428 #28782C #284C78
square
#782874 #785428 #28782C #284C78
split-complementary
#782874 #4C7828 #287854
monochromatic
#1C091B #4A1948 #782874 #A637A0 #C654C0

Accessibility & contrast

On white

8.92
#782874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#782874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782874
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782874#FFFFFF#000000##FFFFFF
##7828741.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214376
Deuteranopia (green-blind)
#3E4D72
Tritanopia (blue-blind)
#7C314A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782874;
/* rgb */ color: rgb(120, 40, 116);
/* oklch */ color: oklch(42.7% 0.146 329.8);
Tailwind
colors: {
  custom: {
    50: '#a2699c',
    500: '#782874',
    950: '#000000',
  },
}
SCSS
$custom: #782874;
$custom-light: #a2699c;
$custom-dark: #000000;
JSON
{
  "hex": "#782874",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 303,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.14581,
    "h": 329.8
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#782874
secondary
#52AA56
accent
#DA554E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782874

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

Preview Lab → · Contrast checker → · Palette generator →

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