#781668#781668

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

Color values

HEX#781668
RGBrgb(120, 22, 104)
HSLhsl(310, 69%, 28%)
HSVhsv(310, 82%, 47%)
CMYKcmyk(0%, 81.7%, 13.3%, 52.9%)
CIE-LABlab(28.29, 49.23, -23.64)
CIE-LCHlch(28.29, 54.61, 334.35°)
OKLaboklab(40.29% 0.1445 -0.0646)
OKLCHoklch(40.29% 0.158 335.9)
XYZxyz(10.5315, 5.5673, 13.6140)
Luminance0.0557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781668 #167826
analogous
#571678 #781668 #781637
triadic
#781668 #687816 #166878
tetradic
#781668 #785716 #167826 #163778
square
#781668 #785716 #167826 #163778
split-complementary
#781668 #377816 #167857
monochromatic
#1A0516 #440D3B #781668 #AC1F95 #D92FBD

Accessibility & contrast

On white

9.94
#781668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#781668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781668
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781668#FFFFFF#000000##FFFFFF
##7816681.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17396A
Deuteranopia (green-blind)
#3B4866
Tritanopia (blue-blind)
#7F1E3E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #781668;
/* rgb */ color: rgb(120, 22, 104);
/* oklch */ color: oklch(40.3% 0.158 335.9);
Tailwind
colors: {
  custom: {
    50: '#a26093',
    500: '#781668',
    950: '#000000',
  },
}
SCSS
$custom: #781668;
$custom-light: #a26093;
$custom-dark: #000000;
JSON
{
  "hex": "#781668",
  "rgb": {
    "r": 120,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 309.796,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.15824,
    "h": 335.9
  },
  "luminance": 0.05566
}

Semantic roles & 50–950 ramp

primary
#781668
secondary
#3CAD4F
accent
#EC593C
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #781668

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

Preview Lab → · Contrast checker → · Palette generator →

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