#681B87#681B87

#681B87 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.2% C 0.172 H 313.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#681B87
RGBrgb(104, 27, 135)
HSLhsl(283, 67%, 32%)
HSVhsv(283, 80%, 53%)
CMYKcmyk(23%, 80%, 0%, 47.1%)
CIE-LABlab(28.05, 49.83, -43.89)
CIE-LCHlch(28.05, 66.40, 318.63°)
OKLaboklab(40.21% 0.1189 -0.1241)
OKLCHoklch(40.21% 0.172 313.8)
XYZxyz(10.4733, 5.4765, 23.4224)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681B87 #3A871B
analogous
#321B87 #681B87 #871B70
triadic
#681B87 #87681B #1B8768
tetradic
#681B87 #87321B #3A871B #1B7087
square
#681B87 #87321B #3A871B #1B7087
split-complementary
#681B87 #70871B #1B8732
monochromatic
#190721 #411154 #681B87 #8F25BA #AE43D9

Accessibility & contrast

On white

10.02
#681B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#681B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681B87
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681B87#FFFFFF#000000##FFFFFF
##681B871.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#104485
Tritanopia (blue-blind)
#653551
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #681b87;
/* rgb */ color: rgb(104, 27, 135);
/* oklch */ color: oklch(40.2% 0.172 313.8);
Tailwind
colors: {
  custom: {
    50: '#9761ab',
    500: '#681b87',
    950: '#000000',
  },
}
SCSS
$custom: #681b87;
$custom-light: #9761ab;
$custom-dark: #000000;
JSON
{
  "hex": "#681b87",
  "rgb": {
    "r": 104,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 282.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40214,
    "c": 0.17181,
    "h": 313.8
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#681B87
secondary
#66BA44
accent
#EA3E6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #681B87

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

Preview Lab → · Contrast checker → · Palette generator →

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