#682CA4#682CA4

#682CA4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.182 H 302.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#682CA4
RGBrgb(104, 44, 164)
HSLhsl(270, 58%, 41%)
HSVhsv(270, 73%, 64%)
CMYKcmyk(36.6%, 73.2%, 0%, 35.7%)
CIE-LABlab(32.75, 49.49, -54.04)
CIE-LCHlch(32.75, 73.28, 312.48°)
OKLaboklab(44.24% 0.097 -0.154)
OKLCHoklch(44.24% 0.182 302.2)
XYZxyz(13.3088, 7.4247, 35.8467)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CA4 #68A42C
analogous
#2C2CA4 #682CA4 #A42CA4
triadic
#682CA4 #A4682C #2CA468
tetradic
#682CA4 #A42C2C #68A42C #2CA4A4
square
#682CA4 #A42C2C #68A42C #2CA4A4
split-complementary
#682CA4 #A4A42C #2CA42C
monochromatic
#2B1243 #491F74 #682CA4 #8741CC #A571D9

Accessibility & contrast

On white

8.45
#682CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#682CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682CA4
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CA4#FFFFFF#000000##FFFFFF
##682CA41.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#5B4965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682ca4;
/* rgb */ color: rgb(104, 44, 164);
/* oklch */ color: oklch(44.2% 0.182 302.2);
Tailwind
colors: {
  custom: {
    50: '#986bc0',
    500: '#682ca4',
    950: '#000000',
  },
}
SCSS
$custom: #682ca4;
$custom-light: #986bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#682ca4",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 270,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4424,
    "c": 0.182,
    "h": 302.2
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#682CA4
secondary
#96C06B
accent
#E14794
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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