#682AAA#682AAA

#682AAA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.191 H 300.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#682AAA
RGBrgb(104, 42, 170)
HSLhsl(269, 60%, 42%)
HSVhsv(269, 75%, 67%)
CMYKcmyk(38.8%, 75.3%, 0%, 33.3%)
CIE-LABlab(32.92, 51.87, -57.38)
CIE-LCHlch(32.92, 77.34, 312.11°)
OKLaboklab(44.51% 0.0976 -0.1638)
OKLCHoklch(44.51% 0.191 300.8)
XYZxyz(13.7908, 7.5012, 38.7437)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AAA #6CAA2A
analogous
#2A2CAA #682AAA #A82AAA
triadic
#682AAA #AA682A #2AAA68
tetradic
#682AAA #AA2A2C #6CAA2A #2AAAA8
square
#682AAA #AA2A2C #6CAA2A #2AAAA8
split-complementary
#682AAA #AAA82A #2CAA2A
monochromatic
#2C1248 #4A1E79 #682AAA #8641D0 #A672DC

Accessibility & contrast

On white

8.40
#682AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#682AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AAA
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AAA#FFFFFF#000000##FFFFFF
##682AAA1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#594B68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682aaa;
/* rgb */ color: rgb(104, 42, 170);
/* oklch */ color: oklch(44.5% 0.191 300.8);
Tailwind
colors: {
  custom: {
    50: '#996ac4',
    500: '#682aaa',
    950: '#000000',
  },
}
SCSS
$custom: #682aaa;
$custom-light: #996ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#682aaa",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 269.063,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44508,
    "c": 0.19067,
    "h": 300.8
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#682AAA
secondary
#99C36C
accent
#E44496
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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