#681B98#681B98

#681B98 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.188 H 307.7°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#681B98
RGBrgb(104, 27, 152)
HSLhsl(277, 70%, 35%)
HSVhsv(277, 82%, 60%)
CMYKcmyk(31.6%, 82.2%, 0%, 40.4%)
CIE-LABlab(29.40, 53.52, -52.21)
CIE-LCHlch(29.40, 74.77, 315.71°)
OKLaboklab(41.58% 0.1149 -0.1485)
OKLCHoklch(41.58% 0.188 307.7)
XYZxyz(11.7671, 5.9941, 30.2368)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681B98 #4B981B
analogous
#2A1B98 #681B98 #981B89
triadic
#681B98 #98681B #1B9868
tetradic
#681B98 #982A1B #4B981B #1B8998
square
#681B98 #982A1B #4B981B #1B8998
split-complementary
#681B98 #89981B #1B982A
monochromatic
#210930 #441264 #681B98 #8C24CC #A84EE0

Accessibility & contrast

On white

9.55
#681B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#681B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681B98
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681B98#FFFFFF#000000##FFFFFF
##681B981.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#603C5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #681b98;
/* rgb */ color: rgb(104, 27, 152);
/* oklch */ color: oklch(41.6% 0.188 307.7);
Tailwind
colors: {
  custom: {
    50: '#9862b7',
    500: '#681b98',
    950: '#000000',
  },
}
SCSS
$custom: #681b98;
$custom-light: #9862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#681b98",
  "rgb": {
    "r": 104,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 276.96,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.18776,
    "h": 307.7
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#681B98
secondary
#7AC24D
accent
#ED3B7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #681B98

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

Preview Lab → · Contrast checker → · Palette generator →

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