#682E8F#682E8F

#682E8F is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.157 H 308.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#682E8F
RGBrgb(104, 46, 143)
HSLhsl(276, 51%, 37%)
HSVhsv(276, 68%, 56%)
CMYKcmyk(27.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(31.53, 43.43, -43.22)
CIE-LCHlch(31.53, 61.28, 315.14°)
OKLaboklab(42.88% 0.0978 -0.1222)
OKLCHoklch(42.88% 0.157 308.7)
XYZxyz(11.6428, 6.8804, 26.6960)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E8F #558F2E
analogous
#372E8F #682E8F #8F2E86
triadic
#682E8F #8F682E #2E8F68
tetradic
#682E8F #8F372E #558F2E #2E868F
square
#682E8F #8F372E #558F2E #2E868F
split-complementary
#682E8F #868F2E #2E8F37
monochromatic
#251032 #461F61 #682E8F #8A3DBD #A669CF

Accessibility & contrast

On white

8.84
#682E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#682E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682E8F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E8F#FFFFFF#000000##FFFFFF
##682E8F1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682e8f;
/* rgb */ color: rgb(104, 46, 143);
/* oklch */ color: oklch(42.9% 0.157 308.7);
Tailwind
colors: {
  custom: {
    50: '#976bb0',
    500: '#682e8f',
    950: '#000000',
  },
}
SCSS
$custom: #682e8f;
$custom-light: #976bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#682e8f",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 275.876,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42875,
    "c": 0.15657,
    "h": 308.7
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#682E8F
secondary
#84B663
accent
#DB4D86
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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