#682C8A#682C8A

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

Color values

HEX#682C8A
RGBrgb(104, 44, 138)
HSLhsl(278, 52%, 36%)
HSVhsv(278, 68%, 54%)
CMYKcmyk(24.6%, 68.1%, 0%, 45.9%)
CIE-LABlab(30.83, 43.25, -41.27)
CIE-LCHlch(30.83, 59.78, 316.34°)
OKLaboklab(42.26% 0.1006 -0.1165)
OKLCHoklch(42.26% 0.154 310.8)
XYZxyz(11.1962, 6.5797, 24.7200)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C8A #4E8A2C
analogous
#392C8A #682C8A #8A2C7D
triadic
#682C8A #8A682C #2C8A68
tetradic
#682C8A #8A392C #4E8A2C #2C7D8A
square
#682C8A #8A392C #4E8A2C #2C7D8A
split-complementary
#682C8A #7D8A2C #2C8A39
monochromatic
#220E2D #451D5C #682C8A #8B3BB8 #A763CD

Accessibility & contrast

On white

9.07
#682C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682C8A
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C8A#FFFFFF#000000##FFFFFF
##682C8A1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#204A88
Tritanopia (blue-blind)
#643F57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682c8a;
/* rgb */ color: rgb(104, 44, 138);
/* oklch */ color: oklch(42.3% 0.154 310.8);
Tailwind
colors: {
  custom: {
    50: '#966aad',
    500: '#682c8a',
    950: '#000000',
  },
}
SCSS
$custom: #682c8a;
$custom-light: #966aad;
$custom-dark: #000000;
JSON
{
  "hex": "#682c8a",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 278.298,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.15394,
    "h": 310.8
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#682C8A
secondary
#7DB45E
accent
#DB4D80
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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