#682DB4#682DB4

#682DB4 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.198 H 297.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#682DB4
RGBrgb(104, 45, 180)
HSLhsl(266, 60%, 44%)
HSVhsv(266, 75%, 71%)
CMYKcmyk(42.2%, 75%, 0%, 29.4%)
CIE-LABlab(34.22, 53.03, -61.22)
CIE-LCHlch(34.22, 81.00, 310.90°)
OKLaboklab(45.68% 0.0925 -0.1751)
OKLCHoklch(45.68% 0.198 297.8)
XYZxyz(14.8834, 8.1149, 43.9533)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB4 #79B42D
analogous
#2D36B4 #682DB4 #AC2DB4
triadic
#682DB4 #B4682D #2DB468
tetradic
#682DB4 #B42D36 #79B42D #2DB4AC
square
#682DB4 #B42D36 #79B42D #2DB4AC
split-complementary
#682DB4 #B4AC2D #36B42D
monochromatic
#2F1552 #4C2183 #682DB4 #874CD2 #A87DDE

Accessibility & contrast

On white

8.01
#682DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#682DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB4
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB4#FFFFFF#000000##FFFFFF
##682DB41.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682db4;
/* rgb */ color: rgb(104, 45, 180);
/* oklch */ color: oklch(45.7% 0.198 297.8);
Tailwind
colors: {
  custom: {
    50: '#9a6ccb',
    500: '#682db4',
    950: '#000000',
  },
}
SCSS
$custom: #682db4;
$custom-light: #9a6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#682db4",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 266.222,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45681,
    "c": 0.19806,
    "h": 297.8
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#682DB4
secondary
#A4C776
accent
#E3459E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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