#682EA1#682EA1

#682EA1 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.176 H 302.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#682EA1
RGBrgb(104, 46, 161)
HSLhsl(270, 56%, 41%)
HSVhsv(270, 71%, 63%)
CMYKcmyk(35.4%, 71.4%, 0%, 36.9%)
CIE-LABlab(32.85, 47.81, -52.07)
CIE-LCHlch(32.85, 70.69, 312.56°)
OKLaboklab(44.24% 0.0955 -0.1482)
OKLCHoklch(44.24% 0.176 302.8)
XYZxyz(13.1174, 7.4702, 34.4621)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EA1 #67A12E
analogous
#2E2EA1 #682EA1 #A12EA0
triadic
#682EA1 #A1682E #2EA168
tetradic
#682EA1 #A12E2E #67A12E #2EA0A1
square
#682EA1 #A12E2E #67A12E #2EA0A1
split-complementary
#682EA1 #A0A12E #2EA12E
monochromatic
#2B1342 #492071 #682EA1 #8743C9 #A573D7

Accessibility & contrast

On white

8.42
#682EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682EA1
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EA1#FFFFFF#000000##FFFFFF
##682EA11.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#5C4964
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682ea1;
/* rgb */ color: rgb(104, 46, 161);
/* oklch */ color: oklch(44.2% 0.176 302.8);
Tailwind
colors: {
  custom: {
    50: '#986cbe',
    500: '#682ea1',
    950: '#000000',
  },
}
SCSS
$custom: #682ea1;
$custom-light: #986cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#682ea1",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 270.261,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44237,
    "c": 0.17632,
    "h": 302.8
  },
  "luminance": 0.0747
}

Semantic roles & 50–950 ramp

primary
#682EA1
secondary
#95BE6C
accent
#DF4993
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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