#682D8E#682D8E

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

Color values

HEX#682D8E
RGBrgb(104, 45, 142)
HSLhsl(276, 52%, 37%)
HSVhsv(276, 68%, 56%)
CMYKcmyk(26.8%, 68.3%, 0%, 44.3%)
CIE-LABlab(31.28, 43.69, -43.01)
CIE-LCHlch(31.28, 61.31, 315.45°)
OKLaboklab(42.67% 0.0991 -0.1216)
OKLCHoklch(42.67% 0.157 309.2)
XYZxyz(11.5288, 6.7730, 26.2859)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D8E #538E2D
analogous
#382D8E #682D8E #8E2D84
triadic
#682D8E #8E682D #2D8E68
tetradic
#682D8E #8E382D #538E2D #2D848E
square
#682D8E #8E382D #538E2D #2D848E
split-complementary
#682D8E #848E2D #2D8E38
monochromatic
#241031 #461E60 #682D8E #8A3CBC #A667CF

Accessibility & contrast

On white

8.92
#682D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#682D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D8E
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D8E#FFFFFF#000000##FFFFFF
##682D8E1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#624159
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682d8e;
/* rgb */ color: rgb(104, 45, 142);
/* oklch */ color: oklch(42.7% 0.157 309.2);
Tailwind
colors: {
  custom: {
    50: '#976ab0',
    500: '#682d8e',
    950: '#000000',
  },
}
SCSS
$custom: #682d8e;
$custom-light: #976ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#682d8e",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 276.495,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.15687,
    "h": 309.2
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#682D8E
secondary
#82B561
accent
#DB4C84
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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