#682E8D#682E8D

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

Color values

HEX#682E8D
RGBrgb(104, 46, 141)
HSLhsl(277, 51%, 37%)
HSVhsv(277, 67%, 55%)
CMYKcmyk(26.2%, 67.4%, 0%, 44.7%)
CIE-LABlab(31.39, 42.96, -42.21)
CIE-LCHlch(31.39, 60.23, 315.50°)
OKLaboklab(42.73% 0.098 -0.1193)
OKLCHoklch(42.73% 0.154 309.4)
XYZxyz(11.4927, 6.8203, 25.9052)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E8D #538D2E
analogous
#392E8D #682E8D #8D2E83
triadic
#682E8D #8D682E #2E8D68
tetradic
#682E8D #8D392E #538D2E #2E838D
square
#682E8D #8D392E #538D2E #2E838D
split-complementary
#682E8D #838D2E #2E8D39
monochromatic
#241031 #461F5F #682E8D #8A3DBB #A668CE

Accessibility & contrast

On white

8.88
#682E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682E8D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E8D#FFFFFF#000000##FFFFFF
##682E8D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#1F4B8B
Tritanopia (blue-blind)
#634259
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682e8d;
/* rgb */ color: rgb(104, 46, 141);
/* oklch */ color: oklch(42.7% 0.154 309.4);
Tailwind
colors: {
  custom: {
    50: '#966baf',
    500: '#682e8d',
    950: '#000000',
  },
}
SCSS
$custom: #682e8d;
$custom-light: #966baf;
$custom-dark: #000000;
JSON
{
  "hex": "#682e8d",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 276.632,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.15438,
    "h": 309.4
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#682E8D
secondary
#82B562
accent
#DA4E84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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