#682EB3#682EB3

#682EB3 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.196 H 298.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#682EB3
RGBrgb(104, 46, 179)
HSLhsl(266, 59%, 44%)
HSVhsv(266, 74%, 70%)
CMYKcmyk(41.9%, 74.3%, 0%, 29.8%)
CIE-LABlab(34.30, 52.32, -60.51)
CIE-LCHlch(34.30, 79.99, 310.85°)
OKLaboklab(45.71% 0.0919 -0.173)
OKLCHoklch(45.71% 0.196 298)
XYZxyz(14.8205, 8.1515, 43.4316)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB3 #79B32E
analogous
#2E37B3 #682EB3 #AB2EB3
triadic
#682EB3 #B3682E #2EB368
tetradic
#682EB3 #B32E37 #79B32E #2EB3AB
square
#682EB3 #B32E37 #79B32E #2EB3AB
split-complementary
#682EB3 #B3AB2E #37B32E
monochromatic
#2F1552 #4C2182 #682EB3 #874DD1 #A87EDE

Accessibility & contrast

On white

7.98
#682EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#682EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EB3
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB3#FFFFFF#000000##FFFFFF
##682EB31.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#55506E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682eb3;
/* rgb */ color: rgb(104, 46, 179);
/* oklch */ color: oklch(45.7% 0.196 298.0);
Tailwind
colors: {
  custom: {
    50: '#9a6ccb',
    500: '#682eb3',
    950: '#000000',
  },
}
SCSS
$custom: #682eb3;
$custom-light: #9a6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb3",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 266.165,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.1959,
    "h": 298
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#682EB3
secondary
#A4C676
accent
#E2469E
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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