#681D8E#681D8E

#681D8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.176 H 311.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#681D8E
RGBrgb(104, 29, 142)
HSLhsl(280, 66%, 34%)
HSVhsv(280, 80%, 56%)
CMYKcmyk(26.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(28.84, 50.62, -46.96)
CIE-LCHlch(28.84, 69.05, 317.14°)
OKLaboklab(40.94% 0.1157 -0.1331)
OKLCHoklch(40.94% 0.176 311)
XYZxyz(11.0298, 5.7751, 26.1196)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681D8E #438E1D
analogous
#2F1D8E #681D8E #8E1D7B
triadic
#681D8E #8E681D #1D8E68
tetradic
#681D8E #8E2F1D #438E1D #1D7B8E
square
#681D8E #8E2F1D #438E1D #1D7B8E
split-complementary
#681D8E #7B8E1D #1D8E2F
monochromatic
#1E0828 #43135B #681D8E #8D27C1 #AA4BDA

Accessibility & contrast

On white

9.74
#681D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #681D8E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681D8E#FFFFFF#000000##FFFFFF
##681D8E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#633955
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #681d8e;
/* rgb */ color: rgb(104, 29, 142);
/* oklch */ color: oklch(40.9% 0.176 311.0);
Tailwind
colors: {
  custom: {
    50: '#9862b0',
    500: '#681d8e',
    950: '#000000',
  },
}
SCSS
$custom: #681d8e;
$custom-light: #9862b0;
$custom-dark: #000000;
JSON
{
  "hex": "#681d8e",
  "rgb": {
    "r": 104,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 279.823,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40936,
    "c": 0.17636,
    "h": 311
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#681D8E
secondary
#71BD4A
accent
#E93F78
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #681D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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