#682EB7#682EB7

#682EB7 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.200 H 297.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#682EB7
RGBrgb(104, 46, 183)
HSLhsl(265, 60%, 45%)
HSVhsv(265, 75%, 72%)
CMYKcmyk(43.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(34.63, 53.34, -62.33)
CIE-LCHlch(34.63, 82.04, 310.56°)
OKLaboklab(46.05% 0.0909 -0.1784)
OKLCHoklch(46.05% 0.2 297)
XYZxyz(15.2309, 8.3156, 45.5932)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB7 #7DB72E
analogous
#2E39B7 #682EB7 #AC2EB7
triadic
#682EB7 #B7682E #2EB768
tetradic
#682EB7 #B72E39 #7DB72E #2EB7AC
square
#682EB7 #B72E39 #7DB72E #2EB7AC
split-complementary
#682EB7 #B7AC2E #39B72E
monochromatic
#301555 #4C2286 #682EB7 #874FD3 #A880DF

Accessibility & contrast

On white

7.89
#682EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#682EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EB7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB7#FFFFFF#000000##FFFFFF
##682EB71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#535270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682eb7;
/* rgb */ color: rgb(104, 46, 183);
/* oklch */ color: oklch(46.0% 0.200 297.0);
Tailwind
colors: {
  custom: {
    50: '#9a6dce',
    500: '#682eb7',
    950: '#000000',
  },
}
SCSS
$custom: #682eb7;
$custom-light: #9a6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb7",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 265.401,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46048,
    "c": 0.20021,
    "h": 297
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #682EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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