#682AA1#682AA1

#682AA1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.181 H 303.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#682AA1
RGBrgb(104, 42, 161)
HSLhsl(271, 59%, 40%)
HSVhsv(271, 74%, 63%)
CMYKcmyk(35.4%, 73.9%, 0%, 36.9%)
CIE-LABlab(32.20, 49.67, -53.14)
CIE-LCHlch(32.20, 72.73, 313.07°)
OKLaboklab(43.77% 0.0995 -0.1514)
OKLCHoklch(43.77% 0.181 303.3)
XYZxyz(12.9684, 7.1722, 34.4125)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AA1 #63A12A
analogous
#2D2AA1 #682AA1 #A12A9E
triadic
#682AA1 #A1682A #2AA168
tetradic
#682AA1 #A12D2A #63A12A #2A9EA1
square
#682AA1 #A12D2A #63A12A #2A9EA1
split-complementary
#682AA1 #9EA12A #2AA12D
monochromatic
#291140 #491D70 #682AA1 #873CCC #A56DD9

Accessibility & contrast

On white

8.63
#682AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#682AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AA1
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AA1#FFFFFF#000000##FFFFFF
##682AA11.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#5D4763
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682aa1;
/* rgb */ color: rgb(104, 42, 161);
/* oklch */ color: oklch(43.8% 0.181 303.3);
Tailwind
colors: {
  custom: {
    50: '#986abe',
    500: '#682aa1',
    950: '#000000',
  },
}
SCSS
$custom: #682aa1;
$custom-light: #986abe;
$custom-dark: #000000;
JSON
{
  "hex": "#682aa1",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 271.261,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.18115,
    "h": 303.3
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#682AA1
secondary
#92C067
accent
#E24691
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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