#682EA7#682EA7

#682EA7 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.183 H 301.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#682EA7
RGBrgb(104, 46, 167)
HSLhsl(269, 57%, 42%)
HSVhsv(269, 72%, 65%)
CMYKcmyk(37.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(33.32, 49.30, -54.92)
CIE-LCHlch(33.32, 73.81, 311.91°)
OKLaboklab(44.72% 0.0944 -0.1566)
OKLCHoklch(44.72% 0.183 301.1)
XYZxyz(13.6593, 7.6870, 37.3158)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EA7 #6DA72E
analogous
#2E31A7 #682EA7 #A52EA7
triadic
#682EA7 #A7682E #2EA768
tetradic
#682EA7 #A72E31 #6DA72E #2EA7A5
square
#682EA7 #A72E31 #6DA72E #2EA7A5
split-complementary
#682EA7 #A7A52E #31A72E
monochromatic
#2C1447 #4A2177 #682EA7 #8646CC #A676D9

Accessibility & contrast

On white

8.28
#682EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#682EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EA7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EA7#FFFFFF#000000##FFFFFF
##682EA71.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#5A4C67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #682ea7;
/* rgb */ color: rgb(104, 46, 167);
/* oklch */ color: oklch(44.7% 0.183 301.1);
Tailwind
colors: {
  custom: {
    50: '#996cc2',
    500: '#682ea7',
    950: '#000000',
  },
}
SCSS
$custom: #682ea7;
$custom-light: #996cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#682ea7",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 268.76,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44716,
    "c": 0.18287,
    "h": 301.1
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#682EA7
secondary
#9AC170
accent
#E04897
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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