#681988#681988

#681988 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.1% C 0.175 H 313.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#681988
RGBrgb(104, 25, 136)
HSLhsl(283, 69%, 32%)
HSVhsv(283, 82%, 53%)
CMYKcmyk(23.5%, 81.6%, 0%, 46.7%)
CIE-LABlab(27.89, 50.73, -44.77)
CIE-LCHlch(27.89, 67.66, 318.57°)
OKLaboklab(40.12% 0.1204 -0.1267)
OKLCHoklch(40.12% 0.175 313.5)
XYZxyz(10.4997, 5.4162, 23.7801)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681988 #398819
analogous
#311988 #681988 #881971
triadic
#681988 #886819 #198868
tetradic
#681988 #883119 #398819 #197188
square
#681988 #883119 #398819 #197188
split-complementary
#681988 #718819 #198831
monochromatic
#190621 #400F54 #681988 #9023BC #AF40DC

Accessibility & contrast

On white

10.08
#681988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#681988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681988
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681988#FFFFFF#000000##FFFFFF
##6819881.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#0A4486
Tritanopia (blue-blind)
#653451
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #681988;
/* rgb */ color: rgb(104, 25, 136);
/* oklch */ color: oklch(40.1% 0.175 313.5);
Tailwind
colors: {
  custom: {
    50: '#9760ab',
    500: '#681988',
    950: '#000000',
  },
}
SCSS
$custom: #681988;
$custom-light: #9760ab;
$custom-dark: #000000;
JSON
{
  "hex": "#681988",
  "rgb": {
    "r": 104,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 282.703,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40124,
    "c": 0.17472,
    "h": 313.5
  },
  "luminance": 0.05416
}

Semantic roles & 50–950 ramp

primary
#681988
secondary
#65BB41
accent
#EC3C6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #681988

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

Preview Lab → · Contrast checker → · Palette generator →

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