#682AA4#682AA4

#682AA4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.184 H 302.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#682AA4
RGBrgb(104, 42, 164)
HSLhsl(270, 59%, 40%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(36.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(32.43, 50.40, -54.56)
CIE-LCHlch(32.43, 74.27, 312.73°)
OKLaboklab(44.01% 0.0989 -0.1555)
OKLCHoklch(44.01% 0.184 302.5)
XYZxyz(13.2361, 7.2793, 35.8225)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AA4 #66A42A
analogous
#2B2AA4 #682AA4 #A42AA3
triadic
#682AA4 #A4682A #2AA468
tetradic
#682AA4 #A42B2A #66A42A #2AA3A4
square
#682AA4 #A42B2A #66A42A #2AA3A4
split-complementary
#682AA4 #A3A42A #2AA42B
monochromatic
#2A1143 #491E73 #682AA4 #873ECD #A56EDA

Accessibility & contrast

On white

8.55
#682AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#682AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AA4
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AA4#FFFFFF#000000##FFFFFF
##682AA41.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#5B4865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682aa4;
/* rgb */ color: rgb(104, 42, 164);
/* oklch */ color: oklch(44.0% 0.184 302.5);
Tailwind
colors: {
  custom: {
    50: '#996ac0',
    500: '#682aa4',
    950: '#000000',
  },
}
SCSS
$custom: #682aa4;
$custom-light: #996ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#682aa4",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 270.492,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44013,
    "c": 0.18433,
    "h": 302.5
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#682AA4
secondary
#94C169
accent
#E24593
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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