#781768#781768

#781768 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.157 H 335.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#781768
RGBrgb(120, 23, 104)
HSLhsl(310, 68%, 28%)
HSVhsv(310, 81%, 47%)
CMYKcmyk(0%, 80.8%, 13.3%, 52.9%)
CIE-LABlab(28.40, 48.94, -23.48)
CIE-LCHlch(28.40, 54.28, 334.37°)
OKLaboklab(40.36% 0.1436 -0.0641)
OKLCHoklch(40.36% 0.157 335.9)
XYZxyz(10.5510, 5.6063, 13.6205)
Luminance0.0561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781768 #177827
analogous
#571778 #781768 #781737
triadic
#781768 #687817 #176878
tetradic
#781768 #785717 #177827 #173778
square
#781768 #785717 #177827 #173778
split-complementary
#781768 #377817 #177857
monochromatic
#1A0516 #450D3B #781768 #AB2195 #D832BC

Accessibility & contrast

On white

9.90
#781768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#781768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781768
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781768#FFFFFF#000000##FFFFFF
##7817681.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183A6A
Deuteranopia (green-blind)
#3C4866
Tritanopia (blue-blind)
#7E1F3E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #781768;
/* rgb */ color: rgb(120, 23, 104);
/* oklch */ color: oklch(40.4% 0.157 335.9);
Tailwind
colors: {
  custom: {
    50: '#a26193',
    500: '#781768',
    950: '#000000',
  },
}
SCSS
$custom: #781768;
$custom-light: #a26193;
$custom-dark: #000000;
JSON
{
  "hex": "#781768",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 309.897,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.15725,
    "h": 335.9
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#781768
secondary
#3EAD50
accent
#EB5A3D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #781768

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

Preview Lab → · Contrast checker → · Palette generator →

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