#782871#782871

#782871 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.143 H 331.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#782871
RGBrgb(120, 40, 113)
HSLhsl(305, 50%, 31%)
HSVhsv(305, 67%, 47%)
CMYKcmyk(0%, 66.7%, 5.8%, 52.9%)
CIE-LABlab(31.12, 44.08, -24.97)
CIE-LCHlch(31.12, 50.66, 330.47°)
OKLaboklab(42.49% 0.1258 -0.0685)
OKLCHoklch(42.49% 0.143 331.4)
XYZxyz(11.4851, 6.7038, 16.3086)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782871 #28782F
analogous
#572878 #782871 #782849
triadic
#782871 #717828 #287178
tetradic
#782871 #785728 #28782F #284978
square
#782871 #785728 #28782F #284978
split-complementary
#782871 #497828 #287857
monochromatic
#1C091B #4A1946 #782871 #A6379C #C654BC

Accessibility & contrast

On white

8.97
#782871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#782871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782871
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782871#FFFFFF#000000##FFFFFF
##7828711.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#7D3049
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #782871;
/* rgb */ color: rgb(120, 40, 113);
/* oklch */ color: oklch(42.5% 0.143 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2689a',
    500: '#782871',
    950: '#000000',
  },
}
SCSS
$custom: #782871;
$custom-light: #a2689a;
$custom-dark: #000000;
JSON
{
  "hex": "#782871",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 305.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42488,
    "c": 0.14323,
    "h": 331.4
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#782871
secondary
#52AA5A
accent
#DA5A4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782871

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

Preview Lab → · Contrast checker → · Palette generator →

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