#682198#682198

#682198 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.182 H 307.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#682198
RGBrgb(104, 33, 152)
HSLhsl(276, 64%, 36%)
HSVhsv(276, 78%, 60%)
CMYKcmyk(31.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.15, 51.34, -50.98)
CIE-LCHlch(30.15, 72.35, 315.20°)
OKLaboklab(42.11% 0.1099 -0.145)
OKLCHoklch(42.11% 0.182 307.2)
XYZxyz(11.9191, 6.2979, 30.2874)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682198 #519821
analogous
#2D2198 #682198 #98218D
triadic
#682198 #986821 #219868
tetradic
#682198 #982D21 #519821 #218D98
square
#682198 #982D21 #519821 #218D98
split-complementary
#682198 #8D9821 #21982D
monochromatic
#230B33 #461666 #682198 #8A2CCA #A659DB

Accessibility & contrast

On white

9.29
#682198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#682198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682198
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682198#FFFFFF#000000##FFFFFF
##6821981.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682198;
/* rgb */ color: rgb(104, 33, 152);
/* oklch */ color: oklch(42.1% 0.182 307.2);
Tailwind
colors: {
  custom: {
    50: '#9865b7',
    500: '#682198',
    950: '#000000',
  },
}
SCSS
$custom: #682198;
$custom-light: #9865b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682198",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 275.798,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42106,
    "c": 0.18192,
    "h": 307.2
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#682198
secondary
#80BF56
accent
#E74084
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682198

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

Preview Lab → · Contrast checker → · Palette generator →

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