#682098#682098

#682098 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.183 H 307.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#682098
RGBrgb(104, 32, 152)
HSLhsl(276, 65%, 36%)
HSVhsv(276, 79%, 60%)
CMYKcmyk(31.6%, 78.9%, 0%, 40.4%)
CIE-LABlab(30.02, 51.72, -51.20)
CIE-LCHlch(30.02, 72.78, 315.29°)
OKLaboklab(42.01% 0.1108 -0.1456)
OKLCHoklch(42.01% 0.183 307.3)
XYZxyz(11.8917, 6.2432, 30.2783)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682098 #509820
analogous
#2C2098 #682098 #98208C
triadic
#682098 #986820 #209868
tetradic
#682098 #982C20 #509820 #208C98
square
#682098 #982C20 #509820 #208C98
split-complementary
#682098 #8C9820 #20982C
monochromatic
#230B33 #451565 #682098 #8B2BCB #A657DC

Accessibility & contrast

On white

9.34
#682098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#682098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682098
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682098#FFFFFF#000000##FFFFFF
##6820981.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682098;
/* rgb */ color: rgb(104, 32, 152);
/* oklch */ color: oklch(42.0% 0.183 307.3);
Tailwind
colors: {
  custom: {
    50: '#9864b7',
    500: '#682098',
    950: '#000000',
  },
}
SCSS
$custom: #682098;
$custom-light: #9864b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682098",
  "rgb": {
    "r": 104,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 276,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42012,
    "c": 0.18296,
    "h": 307.3
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#682098
secondary
#7FBF54
accent
#E84083
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682098

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

Preview Lab → · Contrast checker → · Palette generator →

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