#682DB2#682DB2

#682DB2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.196 H 298.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#682DB2
RGBrgb(104, 45, 178)
HSLhsl(267, 60%, 44%)
HSVhsv(267, 75%, 70%)
CMYKcmyk(41.6%, 74.7%, 0%, 30.2%)
CIE-LABlab(34.05, 52.52, -60.31)
CIE-LCHlch(34.05, 79.97, 311.05°)
OKLaboklab(45.51% 0.093 -0.1724)
OKLCHoklch(45.51% 0.196 298.3)
XYZxyz(14.6811, 8.0340, 42.8881)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB2 #77B22D
analogous
#2D34B2 #682DB2 #AA2DB2
triadic
#682DB2 #B2682D #2DB268
tetradic
#682DB2 #B22D34 #77B22D #2DB2AA
square
#682DB2 #B22D34 #77B22D #2DB2AA
split-complementary
#682DB2 #B2AA2D #34B22D
monochromatic
#2F1450 #4B2181 #682DB2 #874BD1 #A77CDE

Accessibility & contrast

On white

8.06
#682DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#682DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB2#FFFFFF#000000##FFFFFF
##682DB21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#56506D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682db2;
/* rgb */ color: rgb(104, 45, 178);
/* oklch */ color: oklch(45.5% 0.196 298.3);
Tailwind
colors: {
  custom: {
    50: '#9a6cca',
    500: '#682db2',
    950: '#000000',
  },
}
SCSS
$custom: #682db2;
$custom-light: #9a6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#682db2",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 266.617,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.19592,
    "h": 298.3
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#682DB2
secondary
#A2C675
accent
#E3459D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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