#682DB1#682DB1

#682DB1 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.195 H 298.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#682DB1
RGBrgb(104, 45, 177)
HSLhsl(267, 59%, 44%)
HSVhsv(267, 75%, 69%)
CMYKcmyk(41.2%, 74.6%, 0%, 30.6%)
CIE-LABlab(33.97, 52.27, -59.85)
CIE-LCHlch(33.97, 79.46, 311.13°)
OKLaboklab(45.43% 0.0932 -0.1711)
OKLCHoklch(45.43% 0.195 298.6)
XYZxyz(14.5811, 7.9939, 42.3612)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB1 #76B12D
analogous
#2D34B1 #682DB1 #AA2DB1
triadic
#682DB1 #B1682D #2DB168
tetradic
#682DB1 #B12D34 #76B12D #2DB1AA
square
#682DB1 #B12D34 #76B12D #2DB1AA
split-complementary
#682DB1 #B1AA2D #34B12D
monochromatic
#2F144F #4B2180 #682DB1 #864AD1 #A77BDD

Accessibility & contrast

On white

8.08
#682DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#682DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB1
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB1#FFFFFF#000000##FFFFFF
##682DB11.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#564F6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682db1;
/* rgb */ color: rgb(104, 45, 177);
/* oklch */ color: oklch(45.4% 0.195 298.6);
Tailwind
colors: {
  custom: {
    50: '#9a6cc9',
    500: '#682db1',
    950: '#000000',
  },
}
SCSS
$custom: #682db1;
$custom-light: #9a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#682db1",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 266.818,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45427,
    "c": 0.19484,
    "h": 298.6
  },
  "luminance": 0.07994
}

Semantic roles & 50–950 ramp

primary
#682DB1
secondary
#A1C674
accent
#E3459C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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