#781881#781881

#781881 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.176 H 324.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#781881
RGBrgb(120, 24, 129)
HSLhsl(295, 69%, 30%)
HSVhsv(295, 81%, 51%)
CMYKcmyk(7%, 81.4%, 0%, 49.4%)
CIE-LABlab(29.99, 52.84, -36.87)
CIE-LCHlch(29.99, 64.43, 325.09°)
OKLaboklab(41.98% 0.1425 -0.1029)
OKLCHoklch(41.98% 0.176 324.2)
XYZxyz(12.0345, 6.2321, 21.3337)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781881 #218118
analogous
#431881 #781881 #811856
triadic
#781881 #817818 #188178
tetradic
#781881 #814318 #218118 #185681
square
#781881 #814318 #218118 #185681
split-complementary
#781881 #568118 #188143
monochromatic
#18051A #480E4D #781881 #A822B5 #CC39DA

Accessibility & contrast

On white

9.35
#781881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781881
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781881#FFFFFF#000000##FFFFFF
##7818811.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2E4A7F
Tritanopia (blue-blind)
#7A2D4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781881;
/* rgb */ color: rgb(120, 24, 129);
/* oklch */ color: oklch(42.0% 0.176 324.2);
Tailwind
colors: {
  custom: {
    50: '#a362a6',
    500: '#781881',
    950: '#000000',
  },
}
SCSS
$custom: #781881;
$custom-light: #a362a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781881",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 294.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.17579,
    "h": 324.2
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#781881
secondary
#4AB540
accent
#EB3C4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781881

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

Preview Lab → · Contrast checker → · Palette generator →

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