#682EB4#682EB4

#682EB4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.197 H 297.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#682EB4
RGBrgb(104, 46, 180)
HSLhsl(266, 59%, 44%)
HSVhsv(266, 74%, 71%)
CMYKcmyk(42.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(34.38, 52.58, -60.96)
CIE-LCHlch(34.38, 80.50, 310.78°)
OKLaboklab(45.79% 0.0916 -0.1744)
OKLCHoklch(45.79% 0.197 297.7)
XYZxyz(14.9220, 8.1921, 43.9662)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB4 #7AB42E
analogous
#2E37B4 #682EB4 #AB2EB4
triadic
#682EB4 #B4682E #2EB468
tetradic
#682EB4 #B42E37 #7AB42E #2EB4AB
square
#682EB4 #B42E37 #7AB42E #2EB4AB
split-complementary
#682EB4 #B4AB2E #37B42E
monochromatic
#301553 #4C2283 #682EB4 #874ED2 #A87EDE

Accessibility & contrast

On white

7.96
#682EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#682EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EB4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB4#FFFFFF#000000##FFFFFF
##682EB41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#55516F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682eb4;
/* rgb */ color: rgb(104, 46, 180);
/* oklch */ color: oklch(45.8% 0.197 297.7);
Tailwind
colors: {
  custom: {
    50: '#9a6dcb',
    500: '#682eb4',
    950: '#000000',
  },
}
SCSS
$custom: #682eb4;
$custom-light: #9a6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb4",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 265.97,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.19697,
    "h": 297.7
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#682EB4
secondary
#A4C777
accent
#E2459E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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