#682DB7#682DB7

#682DB7 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.201 H 297.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#682DB7
RGBrgb(104, 45, 183)
HSLhsl(266, 61%, 45%)
HSVhsv(266, 75%, 72%)
CMYKcmyk(43.2%, 75.4%, 0%, 28.2%)
CIE-LABlab(34.47, 53.79, -62.59)
CIE-LCHlch(34.47, 82.53, 310.68°)
OKLaboklab(45.94% 0.0918 -0.1791)
OKLCHoklch(45.94% 0.201 297.1)
XYZxyz(15.1923, 8.2384, 45.5803)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB7 #7CB72D
analogous
#2D37B7 #682DB7 #AD2DB7
triadic
#682DB7 #B7682D #2DB768
tetradic
#682DB7 #B72D37 #7CB72D #2DB7AD
square
#682DB7 #B72D37 #7CB72D #2DB7AD
split-complementary
#682DB7 #B7AD2D #37B72D
monochromatic
#301555 #4C2186 #682DB7 #874ED3 #A87FDF

Accessibility & contrast

On white

7.93
#682DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#682DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB7
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB7#FFFFFF#000000##FFFFFF
##682DB71.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#535270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682db7;
/* rgb */ color: rgb(104, 45, 183);
/* oklch */ color: oklch(45.9% 0.201 297.1);
Tailwind
colors: {
  custom: {
    50: '#9a6cce',
    500: '#682db7',
    950: '#000000',
  },
}
SCSS
$custom: #682db7;
$custom-light: #9a6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#682db7",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 265.652,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45937,
    "c": 0.20128,
    "h": 297.1
  },
  "luminance": 0.08239
}

Semantic roles & 50–950 ramp

primary
#682DB7
secondary
#A6C878
accent
#E4449F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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