#682D9B#682D9B

#682D9B is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.171 H 304.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#682D9B
RGBrgb(104, 45, 155)
HSLhsl(272, 55%, 39%)
HSVhsv(272, 71%, 61%)
CMYKcmyk(32.9%, 71%, 0%, 39.2%)
CIE-LABlab(32.23, 46.81, -49.44)
CIE-LCHlch(32.23, 68.09, 313.43°)
OKLaboklab(43.65% 0.0975 -0.1405)
OKLCHoklch(43.65% 0.171 304.8)
XYZxyz(12.5624, 7.1865, 31.7293)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D9B #609B2D
analogous
#312D9B #682D9B #9B2D97
triadic
#682D9B #9B682D #2D9B68
tetradic
#682D9B #9B312D #609B2D #2D979B
square
#682D9B #9B312D #609B2D #2D979B
split-complementary
#682D9B #979B2D #2D9B31
monochromatic
#28113C #481F6C #682D9B #883EC7 #A56ED5

Accessibility & contrast

On white

8.62
#682D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#682D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D9B
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D9B#FFFFFF#000000##FFFFFF
##682D9B1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#5F4661
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682d9b;
/* rgb */ color: rgb(104, 45, 155);
/* oklch */ color: oklch(43.6% 0.171 304.8);
Tailwind
colors: {
  custom: {
    50: '#986bb9',
    500: '#682d9b',
    950: '#000000',
  },
}
SCSS
$custom: #682d9b;
$custom-light: #986bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#682d9b",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 272.182,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43647,
    "c": 0.17103,
    "h": 304.8
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#682D9B
secondary
#8FBC68
accent
#DE498E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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