#682C8D#682C8D

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

Color values

HEX#682C8D
RGBrgb(104, 44, 141)
HSLhsl(277, 52%, 36%)
HSVhsv(277, 69%, 55%)
CMYKcmyk(26.2%, 68.8%, 0%, 44.7%)
CIE-LABlab(31.04, 43.95, -42.79)
CIE-LCHlch(31.04, 61.34, 315.77°)
OKLaboklab(42.48% 0.1004 -0.1209)
OKLCHoklch(42.48% 0.157 309.7)
XYZxyz(11.4164, 6.6677, 25.8797)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C8D #518D2C
analogous
#382C8D #682C8D #8D2C82
triadic
#682C8D #8D682C #2C8D68
tetradic
#682C8D #8D382C #518D2C #2C828D
square
#682C8D #8D382C #518D2C #2C828D
split-complementary
#682C8D #828D2C #2C8D38
monochromatic
#230F30 #461D5E #682C8D #8A3BBC #A665CF

Accessibility & contrast

On white

9.00
#682C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#682C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682C8D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C8D#FFFFFF#000000##FFFFFF
##682C8D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#1C4A8B
Tritanopia (blue-blind)
#634059
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682c8d;
/* rgb */ color: rgb(104, 44, 141);
/* oklch */ color: oklch(42.5% 0.157 309.7);
Tailwind
colors: {
  custom: {
    50: '#976aaf',
    500: '#682c8d',
    950: '#000000',
  },
}
SCSS
$custom: #682c8d;
$custom-light: #976aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#682c8d",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 277.113,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42475,
    "c": 0.15718,
    "h": 309.7
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#682C8D
secondary
#80B560
accent
#DC4C83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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