#682D9A#682D9A

#682D9A is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.170 H 305.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#682D9A
RGBrgb(104, 45, 154)
HSLhsl(272, 55%, 39%)
HSVhsv(272, 71%, 60%)
CMYKcmyk(32.5%, 70.8%, 0%, 39.6%)
CIE-LABlab(32.15, 46.57, -48.96)
CIE-LCHlch(32.15, 67.57, 313.57°)
OKLaboklab(43.57% 0.0977 -0.1391)
OKLCHoklch(43.57% 0.17 305.1)
XYZxyz(12.4787, 7.1530, 31.2888)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D9A #5F9A2D
analogous
#322D9A #682D9A #9A2D96
triadic
#682D9A #9A682D #2D9A68
tetradic
#682D9A #9A322D #5F9A2D #2D969A
square
#682D9A #9A322D #5F9A2D #2D969A
split-complementary
#682D9A #969A2D #2D9A32
monochromatic
#28113B #481F6B #682D9A #883EC7 #A56DD4

Accessibility & contrast

On white

8.64
#682D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#682D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D9A
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D9A#FFFFFF#000000##FFFFFF
##682D9A1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#5F4660
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682d9a;
/* rgb */ color: rgb(104, 45, 154);
/* oklch */ color: oklch(43.6% 0.170 305.1);
Tailwind
colors: {
  custom: {
    50: '#986bb8',
    500: '#682d9a',
    950: '#000000',
  },
}
SCSS
$custom: #682d9a;
$custom-light: #986bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#682d9a",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 272.477,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4357,
    "c": 0.16995,
    "h": 305.1
  },
  "luminance": 0.07153
}

Semantic roles & 50–950 ramp

primary
#682D9A
secondary
#8EBB67
accent
#DE4A8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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