#781874#781874

#781874 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.165 H 330.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#781874
RGBrgb(120, 24, 116)
HSLhsl(303, 67%, 28%)
HSVhsv(303, 80%, 47%)
CMYKcmyk(0%, 80%, 3.3%, 52.9%)
CIE-LABlab(29.18, 50.57, -29.94)
CIE-LCHlch(29.18, 58.77, 329.37°)
OKLaboklab(41.14% 0.1431 -0.0828)
OKLCHoklch(41.14% 0.165 330)
XYZxyz(11.2247, 5.9082, 17.0688)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781874 #18781C
analogous
#4C1878 #781874 #781844
triadic
#781874 #747818 #187478
tetradic
#781874 #784C18 #18781C #184478
square
#781874 #784C18 #18781C #184478
split-complementary
#781874 #447818 #18784C
monochromatic
#1A0519 #450E43 #781874 #AB22A5 #D634D0

Accessibility & contrast

On white

9.63
#781874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#781874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781874
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781874#FFFFFF#000000##FFFFFF
##7818741.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083D76
Deuteranopia (green-blind)
#364972
Tritanopia (blue-blind)
#7D2645
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781874;
/* rgb */ color: rgb(120, 24, 116);
/* oklch */ color: oklch(41.1% 0.165 330.0);
Tailwind
colors: {
  custom: {
    50: '#a2629c',
    500: '#781874',
    950: '#000000',
  },
}
SCSS
$custom: #781874;
$custom-light: #a2629c;
$custom-dark: #000000;
JSON
{
  "hex": "#781874",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 302.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.16535,
    "h": 330
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#781874
secondary
#3FAD43
accent
#EA453E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781874

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

Preview Lab → · Contrast checker → · Palette generator →

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