#682D78#682D78

#682D78 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.2% C 0.133 H 318.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#682D78
RGBrgb(104, 45, 120)
HSLhsl(287, 45%, 32%)
HSVhsv(287, 63%, 47%)
CMYKcmyk(13.3%, 62.5%, 0%, 52.9%)
CIE-LABlab(29.85, 38.69, -31.57)
CIE-LCHlch(29.85, 49.94, 320.78°)
OKLaboklab(41.18% 0.0998 -0.0881)
OKLCHoklch(41.18% 0.133 318.5)
XYZxyz(10.0370, 6.1763, 18.4291)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D78 #3D782D
analogous
#422D78 #682D78 #782D63
triadic
#682D78 #78682D #2D7868
tetradic
#682D78 #78422D #3D782D #2D6378
square
#682D78 #78422D #3D782D #2D6378
split-complementary
#682D78 #63782D #2D7842
monochromatic
#1B0C1F #411C4B #682D78 #8F3EA5 #AD5DC2

Accessibility & contrast

On white

9.40
#682D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#682D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D78
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D78#FFFFFF#000000##FFFFFF
##682D781.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A427A
Deuteranopia (green-blind)
#314876
Tritanopia (blue-blind)
#68394E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #682d78;
/* rgb */ color: rgb(104, 45, 120);
/* oklch */ color: oklch(41.2% 0.133 318.5);
Tailwind
colors: {
  custom: {
    50: '#956a9f',
    500: '#682d78',
    950: '#000000',
  },
}
SCSS
$custom: #682d78;
$custom-light: #956a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#682d78",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 287.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4118,
    "c": 0.13311,
    "h": 318.5
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#682D78
secondary
#69A958
accent
#D5536E
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E070E
muted
#7E7A7E

Preview Lab

Preview with #682D78

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

Preview Lab → · Contrast checker → · Palette generator →

#682D78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva