#682EB6#682EB6

#682EB6 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.199 H 297.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#682EB6
RGBrgb(104, 46, 182)
HSLhsl(266, 60%, 45%)
HSVhsv(266, 75%, 71%)
CMYKcmyk(42.9%, 74.7%, 0%, 28.6%)
CIE-LABlab(34.55, 53.09, -61.88)
CIE-LCHlch(34.55, 81.53, 310.63°)
OKLaboklab(45.96% 0.0911 -0.1771)
OKLCHoklch(45.96% 0.199 297.2)
XYZxyz(15.1272, 8.2742, 45.0470)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB6 #7CB62E
analogous
#2E38B6 #682EB6 #AC2EB6
triadic
#682EB6 #B6682E #2EB668
tetradic
#682EB6 #B62E38 #7CB62E #2EB6AC
square
#682EB6 #B62E38 #7CB62E #2EB6AC
split-complementary
#682EB6 #B6AC2E #38B62E
monochromatic
#301554 #4C2285 #682EB6 #874FD2 #A880DF

Accessibility & contrast

On white

7.91
#682EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#682EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EB6
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB6#FFFFFF#000000##FFFFFF
##682EB61.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#545270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682eb6;
/* rgb */ color: rgb(104, 46, 182);
/* oklch */ color: oklch(46.0% 0.199 297.2);
Tailwind
colors: {
  custom: {
    50: '#9a6dcd',
    500: '#682eb6',
    950: '#000000',
  },
}
SCSS
$custom: #682eb6;
$custom-light: #9a6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb6",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 265.588,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.19913,
    "h": 297.2
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#682EB6
secondary
#A6C878
accent
#E345A0
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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