#682178#682178

#682178 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.7% C 0.151 H 319.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#682178
RGBrgb(104, 33, 120)
HSLhsl(289, 57%, 30%)
HSVhsv(289, 73%, 47%)
CMYKcmyk(13.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(27.81, 44.36, -34.83)
CIE-LCHlch(27.81, 56.40, 321.86°)
OKLaboklab(39.71% 0.1148 -0.0975)
OKLCHoklch(39.71% 0.151 319.6)
XYZxyz(9.6425, 5.3873, 18.2976)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682178 #317821
analogous
#3D2178 #682178 #78215C
triadic
#682178 #786821 #217868
tetradic
#682178 #783D21 #317821 #215C78
square
#682178 #783D21 #317821 #215C78
split-complementary
#682178 #5C7821 #21783D
monochromatic
#150718 #3E1448 #682178 #922EA8 #B447CC

Accessibility & contrast

On white

10.11
#682178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#682178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682178
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682178#FFFFFF#000000##FFFFFF
##6821781.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#284476
Tritanopia (blue-blind)
#68314A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #682178;
/* rgb */ color: rgb(104, 33, 120);
/* oklch */ color: oklch(39.7% 0.151 319.6);
Tailwind
colors: {
  custom: {
    50: '#96639f',
    500: '#682178',
    950: '#000000',
  },
}
SCSS
$custom: #682178;
$custom-light: #96639f;
$custom-dark: #000000;
JSON
{
  "hex": "#682178",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 288.966,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.39706,
    "c": 0.15063,
    "h": 319.6
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#682178
secondary
#5CAB4A
accent
#E04864
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #682178

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

Preview Lab → · Contrast checker → · Palette generator →

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