#682DB8#682DB8

#682DB8 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.202 H 296.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#682DB8
RGBrgb(104, 45, 184)
HSLhsl(265, 61%, 45%)
HSVhsv(265, 76%, 72%)
CMYKcmyk(43.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(34.56, 54.04, -63.04)
CIE-LCHlch(34.56, 83.03, 310.61°)
OKLaboklab(46.02% 0.0915 -0.1805)
OKLCHoklch(46.02% 0.202 296.9)
XYZxyz(15.2968, 8.2802, 46.1304)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB8 #7DB82D
analogous
#2D37B8 #682DB8 #AE2DB8
triadic
#682DB8 #B8682D #2DB868
tetradic
#682DB8 #B82D37 #7DB82D #2DB8AE
square
#682DB8 #B82D37 #7DB82D #2DB8AE
split-complementary
#682DB8 #B8AE2D #37B82D
monochromatic
#301556 #4C2187 #682DB8 #874ED4 #A880E0

Accessibility & contrast

On white

7.91
#682DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#682DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB8
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB8#FFFFFF#000000##FFFFFF
##682DB81.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#535271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682db8;
/* rgb */ color: rgb(104, 45, 184);
/* oklch */ color: oklch(46.0% 0.202 296.9);
Tailwind
colors: {
  custom: {
    50: '#9b6cce',
    500: '#682db8',
    950: '#000000',
  },
}
SCSS
$custom: #682db8;
$custom-light: #9b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#682db8",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 265.468,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.20234,
    "h": 296.9
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#682DB8
secondary
#A6C978
accent
#E444A0
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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