#682D8F#682D8F

#682D8F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.158 H 308.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#682D8F
RGBrgb(104, 45, 143)
HSLhsl(276, 52%, 37%)
HSVhsv(276, 69%, 56%)
CMYKcmyk(27.3%, 68.5%, 0%, 43.9%)
CIE-LABlab(31.35, 43.93, -43.51)
CIE-LCHlch(31.35, 61.83, 315.27°)
OKLaboklab(42.75% 0.099 -0.1231)
OKLCHoklch(42.75% 0.158 308.8)
XYZxyz(11.6042, 6.8032, 26.6831)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D8F #548F2D
analogous
#372D8F #682D8F #8F2D85
triadic
#682D8F #8F682D #2D8F68
tetradic
#682D8F #8F372D #548F2D #2D858F
square
#682D8F #8F372D #548F2D #2D858F
split-complementary
#682D8F #858F2D #2D8F37
monochromatic
#241032 #461E60 #682D8F #8A3CBE #A667CF

Accessibility & contrast

On white

8.90
#682D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#682D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D8F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D8F#FFFFFF#000000##FFFFFF
##682D8F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#1B4B8D
Tritanopia (blue-blind)
#62425A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682d8f;
/* rgb */ color: rgb(104, 45, 143);
/* oklch */ color: oklch(42.7% 0.158 308.8);
Tailwind
colors: {
  custom: {
    50: '#976ab0',
    500: '#682d8f',
    950: '#000000',
  },
}
SCSS
$custom: #682d8f;
$custom-light: #976ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#682d8f",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 276.122,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42746,
    "c": 0.15796,
    "h": 308.8
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#682D8F
secondary
#83B662
accent
#DC4C85
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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