#681798#681798

#681798 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.3% C 0.191 H 308.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#681798
RGBrgb(104, 23, 152)
HSLhsl(278, 74%, 34%)
HSVhsv(278, 85%, 60%)
CMYKcmyk(31.6%, 84.9%, 0%, 40.4%)
CIE-LABlab(28.96, 54.80, -52.92)
CIE-LCHlch(28.96, 76.18, 316.00°)
OKLaboklab(41.28% 0.1178 -0.1506)
OKLCHoklch(41.28% 0.191 308)
XYZxyz(11.6816, 5.8230, 30.2082)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681798 #479817
analogous
#271798 #681798 #981788
triadic
#681798 #986817 #179868
tetradic
#681798 #982717 #479817 #178898
square
#681798 #982717 #479817 #178898
split-complementary
#681798 #889817 #179827
monochromatic
#1F072E #440F63 #681798 #8C1FCD #A946E3

Accessibility & contrast

On white

9.70
#681798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#681798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681798
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681798#FFFFFF#000000##FFFFFF
##6817981.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#603B5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #681798;
/* rgb */ color: rgb(104, 23, 152);
/* oklch */ color: oklch(41.3% 0.191 308.0);
Tailwind
colors: {
  custom: {
    50: '#9961b7',
    500: '#681798',
    950: '#000000',
  },
}
SCSS
$custom: #681798;
$custom-light: #9961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#681798",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 277.674,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41275,
    "c": 0.19116,
    "h": 308
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#681798
secondary
#75C447
accent
#F0377C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #681798

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

Preview Lab → · Contrast checker → · Palette generator →

#681798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva