#682C8B#682C8B

#682C8B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.155 H 310.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#682C8B
RGBrgb(104, 44, 139)
HSLhsl(278, 52%, 36%)
HSVhsv(278, 68%, 55%)
CMYKcmyk(25.2%, 68.3%, 0%, 45.5%)
CIE-LABlab(30.90, 43.48, -41.78)
CIE-LCHlch(30.90, 60.30, 316.15°)
OKLaboklab(42.33% 0.1006 -0.118)
OKLCHoklch(42.33% 0.155 310.4)
XYZxyz(11.2689, 6.6087, 25.1031)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C8B #4F8B2C
analogous
#382C8B #682C8B #8B2C7E
triadic
#682C8B #8B682C #2C8B68
tetradic
#682C8B #8B382C #4F8B2C #2C7E8B
square
#682C8B #8B382C #4F8B2C #2C7E8B
split-complementary
#682C8B #7E8B2C #2C8B38
monochromatic
#220F2E #451D5D #682C8B #8B3BB9 #A764CE

Accessibility & contrast

On white

9.04
#682C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#682C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682C8B
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C8B#FFFFFF#000000##FFFFFF
##682C8B1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#634058
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682c8b;
/* rgb */ color: rgb(104, 44, 139);
/* oklch */ color: oklch(42.3% 0.155 310.4);
Tailwind
colors: {
  custom: {
    50: '#966aad',
    500: '#682c8b',
    950: '#000000',
  },
}
SCSS
$custom: #682c8b;
$custom-light: #966aad;
$custom-dark: #000000;
JSON
{
  "hex": "#682c8b",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 277.895,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.15502,
    "h": 310.4
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#682C8B
secondary
#7EB45F
accent
#DB4C81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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