#682CB1#682CB1

#682CB1 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.196 H 298.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#682CB1
RGBrgb(104, 44, 177)
HSLhsl(267, 60%, 43%)
HSVhsv(267, 75%, 69%)
CMYKcmyk(41.2%, 75.1%, 0%, 30.6%)
CIE-LABlab(33.81, 52.72, -60.11)
CIE-LCHlch(33.81, 79.95, 311.26°)
OKLaboklab(45.32% 0.0941 -0.1718)
OKLCHoklch(45.32% 0.196 298.7)
XYZxyz(14.5434, 7.9185, 42.3487)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CB1 #75B12C
analogous
#2C32B1 #682CB1 #AA2CB1
triadic
#682CB1 #B1682C #2CB168
tetradic
#682CB1 #B12C32 #75B12C #2CB1AA
square
#682CB1 #B12C32 #75B12C #2CB1AA
split-complementary
#682CB1 #B1AA2C #32B12C
monochromatic
#2E144F #4B2080 #682CB1 #8649D2 #A77ADE

Accessibility & contrast

On white

8.13
#682CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#682CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682CB1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CB1#FFFFFF#000000##FFFFFF
##682CB11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#564F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682cb1;
/* rgb */ color: rgb(104, 44, 177);
/* oklch */ color: oklch(45.3% 0.196 298.7);
Tailwind
colors: {
  custom: {
    50: '#9a6bc9',
    500: '#682cb1',
    950: '#000000',
  },
}
SCSS
$custom: #682cb1;
$custom-light: #9a6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#682cb1",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 267.068,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45316,
    "c": 0.19593,
    "h": 298.7
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#682CB1
secondary
#A0C673
accent
#E3449C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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