#682CB5#682CB5

#682CB5 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.200 H 297.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#682CB5
RGBrgb(104, 44, 181)
HSLhsl(266, 61%, 44%)
HSVhsv(266, 76%, 71%)
CMYKcmyk(42.5%, 75.7%, 0%, 29%)
CIE-LABlab(34.15, 53.73, -61.93)
CIE-LCHlch(34.15, 81.99, 310.94°)
OKLaboklab(45.66% 0.0931 -0.1772)
OKLCHoklch(45.66% 0.2 297.7)
XYZxyz(14.9479, 8.0803, 44.4792)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CB5 #79B52C
analogous
#2C35B5 #682CB5 #AD2CB5
triadic
#682CB5 #B5682C #2CB568
tetradic
#682CB5 #B52C35 #79B52C #2CB5AD
square
#682CB5 #B52C35 #79B52C #2CB5AD
split-complementary
#682CB5 #B5AD2C #35B52C
monochromatic
#2F1453 #4C2084 #682CB5 #874BD3 #A87CDF

Accessibility & contrast

On white

8.03
#682CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682CB5
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CB5#FFFFFF#000000##FFFFFF
##682CB51.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#54506F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682cb5;
/* rgb */ color: rgb(104, 44, 181);
/* oklch */ color: oklch(45.7% 0.200 297.7);
Tailwind
colors: {
  custom: {
    50: '#9a6ccc',
    500: '#682cb5',
    950: '#000000',
  },
}
SCSS
$custom: #682cb5;
$custom-light: #9a6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#682cb5",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 266.277,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45657,
    "c": 0.2002,
    "h": 297.7
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#682CB5
secondary
#A4C875
accent
#E4449E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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