#681D8F#681D8F

#681D8F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.177 H 310.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#681D8F
RGBrgb(104, 29, 143)
HSLhsl(279, 66%, 34%)
HSVhsv(279, 80%, 56%)
CMYKcmyk(27.3%, 79.7%, 0%, 43.9%)
CIE-LABlab(28.92, 50.83, -47.46)
CIE-LCHlch(28.92, 69.54, 316.97°)
OKLaboklab(41.02% 0.1155 -0.1346)
OKLCHoklch(41.02% 0.177 310.6)
XYZxyz(11.1052, 5.8052, 26.5168)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681D8F #448F1D
analogous
#2F1D8F #681D8F #8F1D7D
triadic
#681D8F #8F681D #1D8F68
tetradic
#681D8F #8F2F1D #448F1D #1D7D8F
square
#681D8F #8F2F1D #448F1D #1D7D8F
split-complementary
#681D8F #7D8F1D #1D8F2F
monochromatic
#1E0829 #43135C #681D8F #8D27C2 #AA4CDB

Accessibility & contrast

On white

9.72
#681D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#681D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681D8F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681D8F#FFFFFF#000000##FFFFFF
##681D8F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#633956
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #681d8f;
/* rgb */ color: rgb(104, 29, 143);
/* oklch */ color: oklch(41.0% 0.177 310.6);
Tailwind
colors: {
  custom: {
    50: '#9862b1',
    500: '#681d8f',
    950: '#000000',
  },
}
SCSS
$custom: #681d8f;
$custom-light: #9862b1;
$custom-dark: #000000;
JSON
{
  "hex": "#681d8f",
  "rgb": {
    "r": 104,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 279.474,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41015,
    "c": 0.17731,
    "h": 310.6
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#681D8F
secondary
#72BD4B
accent
#E93F79
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #681D8F

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

Preview Lab → · Contrast checker → · Palette generator →

#681D8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva