#682AA7#682AA7

#682AA7 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.188 H 301.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#682AA7
RGBrgb(104, 42, 167)
HSLhsl(270, 60%, 41%)
HSVhsv(270, 75%, 65%)
CMYKcmyk(37.7%, 74.9%, 0%, 34.5%)
CIE-LABlab(32.68, 51.13, -55.97)
CIE-LCHlch(32.68, 75.81, 312.41°)
OKLaboklab(44.26% 0.0983 -0.1597)
OKLCHoklch(44.26% 0.188 301.6)
XYZxyz(13.5102, 7.3889, 37.2662)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AA7 #69A72A
analogous
#2A2AA7 #682AA7 #A62AA7
triadic
#682AA7 #A7682A #2AA768
tetradic
#682AA7 #A72A2A #69A72A #2AA7A6
square
#682AA7 #A72A2A #69A72A #2AA7A6
split-complementary
#682AA7 #A7A62A #2AA72A
monochromatic
#2B1145 #4A1E76 #682AA7 #873FCF #A570DB

Accessibility & contrast

On white

8.48
#682AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#682AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AA7
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AA7#FFFFFF#000000##FFFFFF
##682AA71.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#5A4A66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682aa7;
/* rgb */ color: rgb(104, 42, 167);
/* oklch */ color: oklch(44.3% 0.188 301.6);
Tailwind
colors: {
  custom: {
    50: '#996ac2',
    500: '#682aa7',
    950: '#000000',
  },
}
SCSS
$custom: #682aa7;
$custom-light: #996ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#682aa7",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 269.76,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44259,
    "c": 0.1875,
    "h": 301.6
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#682AA7
secondary
#97C26B
accent
#E34595
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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