#681788#681788

#681788 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 40.0% C 0.177 H 313.7°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#681788
RGBrgb(104, 23, 136)
HSLhsl(283, 71%, 31%)
HSVhsv(283, 83%, 53%)
CMYKcmyk(23.5%, 83.1%, 0%, 46.7%)
CIE-LABlab(27.67, 51.38, -45.13)
CIE-LCHlch(27.67, 68.39, 318.70°)
OKLaboklab(39.97% 0.122 -0.1277)
OKLCHoklch(39.97% 0.177 313.7)
XYZxyz(10.4585, 5.3338, 23.7664)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681788 #378817
analogous
#2F1788 #681788 #88176F
triadic
#681788 #886817 #178868
tetradic
#681788 #882F17 #378817 #176F88
square
#681788 #882F17 #378817 #176F88
split-complementary
#681788 #6F8817 #17882F
monochromatic
#18051F #400E54 #681788 #9020BC #B03BDE

Accessibility & contrast

On white

10.16
#681788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#681788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681788
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681788#FFFFFF#000000##FFFFFF
##6817881.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#074386
Tritanopia (blue-blind)
#653351
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #681788;
/* rgb */ color: rgb(104, 23, 136);
/* oklch */ color: oklch(40.0% 0.177 313.7);
Tailwind
colors: {
  custom: {
    50: '#9760ab',
    500: '#681788',
    950: '#000000',
  },
}
SCSS
$custom: #681788;
$custom-light: #9760ab;
$custom-dark: #000000;
JSON
{
  "hex": "#681788",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 283.009,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39967,
    "c": 0.17658,
    "h": 313.7
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#681788
secondary
#62BC3F
accent
#EE3A6D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #681788

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

Preview Lab → · Contrast checker → · Palette generator →

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