#682EB5#682EB5

#682EB5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.198 H 297.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#682EB5
RGBrgb(104, 46, 181)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 75%, 71%)
CMYKcmyk(42.5%, 74.6%, 0%, 29%)
CIE-LABlab(34.46, 52.83, -61.42)
CIE-LCHlch(34.46, 81.02, 310.70°)
OKLaboklab(45.88% 0.0914 -0.1757)
OKLCHoklch(45.88% 0.198 297.5)
XYZxyz(15.0242, 8.2330, 44.5047)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB5 #7BB52E
analogous
#2E38B5 #682EB5 #AC2EB5
triadic
#682EB5 #B5682E #2EB568
tetradic
#682EB5 #B52E38 #7BB52E #2EB5AC
square
#682EB5 #B52E38 #7BB52E #2EB5AC
split-complementary
#682EB5 #B5AC2E #38B52E
monochromatic
#301553 #4C2284 #682EB5 #874ED2 #A87FDE

Accessibility & contrast

On white

7.93
#682EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682EB5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB5#FFFFFF#000000##FFFFFF
##682EB51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#54516F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682eb5;
/* rgb */ color: rgb(104, 46, 181);
/* oklch */ color: oklch(45.9% 0.198 297.5);
Tailwind
colors: {
  custom: {
    50: '#9a6dcc',
    500: '#682eb5',
    950: '#000000',
  },
}
SCSS
$custom: #682eb5;
$custom-light: #9a6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb5",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 265.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45877,
    "c": 0.19806,
    "h": 297.5
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#682EB5
secondary
#A5C778
accent
#E3459F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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