#682FB1#682FB1

#682FB1 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.193 H 298.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#682FB1
RGBrgb(104, 47, 177)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 73%, 69%)
CMYKcmyk(41.2%, 73.4%, 0%, 30.6%)
CIE-LABlab(34.29, 51.36, -59.32)
CIE-LCHlch(34.29, 78.46, 310.88°)
OKLaboklab(45.66% 0.0914 -0.1695)
OKLCHoklch(45.66% 0.193 298.3)
XYZxyz(14.6592, 8.1502, 42.3873)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB1 #78B12F
analogous
#2F37B1 #682FB1 #A92FB1
triadic
#682FB1 #B1682F #2FB168
tetradic
#682FB1 #B12F37 #78B12F #2FB1A9
square
#682FB1 #B12F37 #78B12F #2FB1A9
split-complementary
#682FB1 #B1A92F #37B12F
monochromatic
#2F1550 #4C2281 #682FB1 #874DD0 #A77EDD

Accessibility & contrast

On white

7.98
#682FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#682FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB1#FFFFFF#000000##FFFFFF
##682FB11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#56506D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682fb1;
/* rgb */ color: rgb(104, 47, 177);
/* oklch */ color: oklch(45.7% 0.193 298.3);
Tailwind
colors: {
  custom: {
    50: '#9a6dc9',
    500: '#682fb1',
    950: '#000000',
  },
}
SCSS
$custom: #682fb1;
$custom-light: #9a6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb1",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 266.308,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45655,
    "c": 0.19261,
    "h": 298.3
  },
  "luminance": 0.0815
}

Semantic roles & 50–950 ramp

primary
#682FB1
secondary
#A3C576
accent
#E1479D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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