#682ED4#682ED4

#682ED4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.231 H 291.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#682ED4
RGBrgb(104, 46, 212)
HSLhsl(261, 66%, 51%)
HSVhsv(261, 78%, 83%)
CMYKcmyk(50.9%, 78.3%, 0%, 16.9%)
CIE-LABlab(37.21, 60.77, -75.06)
CIE-LCHlch(37.21, 96.58, 309.00°)
OKLaboklab(48.64% 0.0829 -0.2157)
OKLCHoklch(48.64% 0.231 291)
XYZxyz(18.5662, 9.6497, 63.1589)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682ED4 #9AD42E
analogous
#2E47D4 #682ED4 #BB2ED4
triadic
#682ED4 #D4682E #2ED468
tetradic
#682ED4 #D42E47 #9AD42E #2ED4BB
square
#682ED4 #D42E47 #9AD42E #2ED4BB
split-complementary
#682ED4 #D4BB2E #47D42E
monochromatic
#361770 #4F22A3 #682ED4 #8D61DE #B194E9

Accessibility & contrast

On white

7.17
#682ED4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#682ED4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682ED4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682ED4#FFFFFF#000000##FFFFFF
##682ED41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#425E81
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #682ed4;
/* rgb */ color: rgb(104, 46, 212);
/* oklch */ color: oklch(48.6% 0.231 291.0);
Tailwind
colors: {
  custom: {
    50: '#9e6ee3',
    500: '#682ed4',
    950: '#000000',
  },
}
SCSS
$custom: #682ed4;
$custom-light: #9e6ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#682ed4",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 212
  },
  "hsl": {
    "h": 260.964,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48635,
    "c": 0.23109,
    "h": 291
  },
  "luminance": 0.09651
}

Semantic roles & 50–950 ramp

primary
#682ED4
secondary
#BAD48A
accent
#E93FAD
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #682ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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