#682C8C#682C8C

#682C8C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.156 H 310.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#682C8C
RGBrgb(104, 44, 140)
HSLhsl(278, 52%, 36%)
HSVhsv(278, 69%, 55%)
CMYKcmyk(25.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(30.97, 43.71, -42.28)
CIE-LCHlch(30.97, 60.82, 315.95°)
OKLaboklab(42.4% 0.1005 -0.1195)
OKLCHoklch(42.4% 0.156 310.1)
XYZxyz(11.3423, 6.6381, 25.4896)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C8C #508C2C
analogous
#382C8C #682C8C #8C2C80
triadic
#682C8C #8C682C #2C8C68
tetradic
#682C8C #8C382C #508C2C #2C808C
square
#682C8C #8C382C #508C2C #2C808C
split-complementary
#682C8C #808C2C #2C8C38
monochromatic
#230F2F #451D5D #682C8C #8B3BBB #A664CE

Accessibility & contrast

On white

9.02
#682C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682C8C
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C8C#FFFFFF#000000##FFFFFF
##682C8C1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682c8c;
/* rgb */ color: rgb(104, 44, 140);
/* oklch */ color: oklch(42.4% 0.156 310.1);
Tailwind
colors: {
  custom: {
    50: '#976aae',
    500: '#682c8c',
    950: '#000000',
  },
}
SCSS
$custom: #682c8c;
$custom-light: #976aae;
$custom-dark: #000000;
JSON
{
  "hex": "#682c8c",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 277.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.15609,
    "h": 310.1
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#682C8C
secondary
#7FB55F
accent
#DC4C82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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