#682E9D#682E9D

#682E9D is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.172 H 304.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#682E9D
RGBrgb(104, 46, 157)
HSLhsl(271, 55%, 40%)
HSVhsv(271, 71%, 62%)
CMYKcmyk(33.8%, 70.7%, 0%, 38.4%)
CIE-LABlab(32.55, 46.82, -50.14)
CIE-LCHlch(32.55, 68.60, 313.04°)
OKLaboklab(43.92% 0.0961 -0.1426)
OKLCHoklch(43.92% 0.172 304)
XYZxyz(12.7703, 7.3314, 32.6341)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E9D #639D2E
analogous
#302E9D #682E9D #9D2E9B
triadic
#682E9D #9D682E #2E9D68
tetradic
#682E9D #9D302E #639D2E #2E9B9D
square
#682E9D #9D302E #639D2E #2E9B9D
split-complementary
#682E9D #9B9D2E #2E9D30
monochromatic
#29123E #49206E #682E9D #8741C7 #A570D5

Accessibility & contrast

On white

8.52
#682E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#682E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682E9D
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E9D#FFFFFF#000000##FFFFFF
##682E9D1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#5E4862
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682e9d;
/* rgb */ color: rgb(104, 46, 157);
/* oklch */ color: oklch(43.9% 0.172 304.0);
Tailwind
colors: {
  custom: {
    50: '#986cbb',
    500: '#682e9d',
    950: '#000000',
  },
}
SCSS
$custom: #682e9d;
$custom-light: #986cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#682e9d",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 271.351,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43924,
    "c": 0.17194,
    "h": 304
  },
  "luminance": 0.07331
}

Semantic roles & 50–950 ramp

primary
#682E9D
secondary
#92BD6A
accent
#DE4A91
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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