#681F98#681F98

#681F98 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.184 H 307.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#681F98
RGBrgb(104, 31, 152)
HSLhsl(276, 66%, 36%)
HSVhsv(276, 80%, 60%)
CMYKcmyk(31.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(29.89, 52.10, -51.41)
CIE-LCHlch(29.89, 73.20, 315.38°)
OKLaboklab(41.92% 0.1117 -0.1462)
OKLCHoklch(41.92% 0.184 307.4)
XYZxyz(11.8652, 6.1902, 30.2694)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681F98 #4F981F
analogous
#2B1F98 #681F98 #981F8B
triadic
#681F98 #98681F #1F9868
tetradic
#681F98 #982B1F #4F981F #1F8B98
square
#681F98 #982B1F #4F981F #1F8B98
split-complementary
#681F98 #8B981F #1F982B
monochromatic
#220A32 #451565 #681F98 #8B29CB #A755DC

Accessibility & contrast

On white

9.38
#681F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#681F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681F98
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681F98#FFFFFF#000000##FFFFFF
##681F981.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#603E5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #681f98;
/* rgb */ color: rgb(104, 31, 152);
/* oklch */ color: oklch(41.9% 0.184 307.4);
Tailwind
colors: {
  custom: {
    50: '#9864b7',
    500: '#681f98',
    950: '#000000',
  },
}
SCSS
$custom: #681f98;
$custom-light: #9864b7;
$custom-dark: #000000;
JSON
{
  "hex": "#681f98",
  "rgb": {
    "r": 104,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 276.198,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4192,
    "c": 0.18396,
    "h": 307.4
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#681F98
secondary
#7EC053
accent
#E93F82
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #681F98

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

Preview Lab → · Contrast checker → · Palette generator →

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