#682A8D#682A8D

#682A8D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.160 H 310.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#682A8D
RGBrgb(104, 42, 141)
HSLhsl(278, 54%, 36%)
HSVhsv(278, 70%, 55%)
CMYKcmyk(26.2%, 70.2%, 0%, 44.7%)
CIE-LABlab(30.69, 44.91, -43.34)
CIE-LCHlch(30.69, 62.41, 316.02°)
OKLaboklab(42.23% 0.1027 -0.1226)
OKLCHoklch(42.23% 0.16 310)
XYZxyz(11.3437, 6.5223, 25.8555)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A8D #4F8D2A
analogous
#372A8D #682A8D #8D2A80
triadic
#682A8D #8D682A #2A8D68
tetradic
#682A8D #8D372A #4F8D2A #2A808D
square
#682A8D #8D372A #4F8D2A #2A808D
split-complementary
#682A8D #808D2A #2A8D37
monochromatic
#220E2F #451C5E #682A8D #8B38BC #A761D0

Accessibility & contrast

On white

9.11
#682A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#682A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A8D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A8D#FFFFFF#000000##FFFFFF
##682A8D1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#1A498B
Tritanopia (blue-blind)
#633F58
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682a8d;
/* rgb */ color: rgb(104, 42, 141);
/* oklch */ color: oklch(42.2% 0.160 310.0);
Tailwind
colors: {
  custom: {
    50: '#9769af',
    500: '#682a8d',
    950: '#000000',
  },
}
SCSS
$custom: #682a8d;
$custom-light: #9769af;
$custom-dark: #000000;
JSON
{
  "hex": "#682a8d",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 277.576,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.1599,
    "h": 310
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#682A8D
secondary
#7EB65D
accent
#DD4A81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #682A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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