#781870#781870

#781870 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.162 H 331.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#781870
RGBrgb(120, 24, 112)
HSLhsl(305, 67%, 28%)
HSVhsv(305, 80%, 47%)
CMYKcmyk(0%, 80%, 6.7%, 52.9%)
CIE-LABlab(28.95, 49.91, -27.76)
CIE-LCHlch(28.95, 57.11, 330.92°)
OKLaboklab(40.9% 0.1431 -0.0764)
OKLCHoklch(40.9% 0.162 331.9)
XYZxyz(10.9970, 5.8171, 15.8697)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781870 #187820
analogous
#501878 #781870 #781840
triadic
#781870 #707818 #187078
tetradic
#781870 #785018 #187820 #184078
square
#781870 #785018 #187820 #184078
split-complementary
#781870 #407818 #187850
monochromatic
#1A0518 #450E40 #781870 #AB22A0 #D634C9

Accessibility & contrast

On white

9.71
#781870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#781870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781870
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781870#FFFFFF#000000##FFFFFF
##7818701.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C72
Deuteranopia (green-blind)
#38496E
Tritanopia (blue-blind)
#7D2443
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781870;
/* rgb */ color: rgb(120, 24, 112);
/* oklch */ color: oklch(40.9% 0.162 331.9);
Tailwind
colors: {
  custom: {
    50: '#a26199',
    500: '#781870',
    950: '#000000',
  },
}
SCSS
$custom: #781870;
$custom-light: #a26199;
$custom-dark: #000000;
JSON
{
  "hex": "#781870",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 305,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40901,
    "c": 0.16224,
    "h": 331.9
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#781870
secondary
#3FAD48
accent
#EA4C3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781870

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

Preview Lab → · Contrast checker → · Palette generator →

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