#682D8B#682D8B

#682D8B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.154 H 310.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#682D8B
RGBrgb(104, 45, 139)
HSLhsl(278, 51%, 36%)
HSVhsv(278, 68%, 55%)
CMYKcmyk(25.2%, 67.6%, 0%, 45.5%)
CIE-LABlab(31.08, 42.99, -41.49)
CIE-LCHlch(31.08, 59.74, 316.02°)
OKLaboklab(42.46% 0.0994 -0.1171)
OKLCHoklch(42.46% 0.154 310.3)
XYZxyz(11.3066, 6.6841, 25.1156)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D8B #508B2D
analogous
#392D8B #682D8B #8B2D7F
triadic
#682D8B #8B682D #2D8B68
tetradic
#682D8B #8B392D #508B2D #2D7F8B
square
#682D8B #8B392D #508B2D #2D7F8B
split-complementary
#682D8B #7F8B2D #2D8B39
monochromatic
#230F2F #451E5D #682D8B #8B3CB9 #A665CD

Accessibility & contrast

On white

8.99
#682D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#682D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D8B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D8B#FFFFFF#000000##FFFFFF
##682D8B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#634058
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682d8b;
/* rgb */ color: rgb(104, 45, 139);
/* oklch */ color: oklch(42.5% 0.154 310.3);
Tailwind
colors: {
  custom: {
    50: '#966aad',
    500: '#682d8b',
    950: '#000000',
  },
}
SCSS
$custom: #682d8b;
$custom-light: #966aad;
$custom-dark: #000000;
JSON
{
  "hex": "#682d8b",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 277.66,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42458,
    "c": 0.1536,
    "h": 310.3
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#682D8B
secondary
#7FB460
accent
#DB4D82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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