#682E8B#682E8B

#682E8B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.152 H 310.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#682E8B
RGBrgb(104, 46, 139)
HSLhsl(277, 50%, 36%)
HSVhsv(277, 67%, 55%)
CMYKcmyk(25.2%, 66.9%, 0%, 45.5%)
CIE-LABlab(31.26, 42.49, -41.20)
CIE-LCHlch(31.26, 59.18, 315.88°)
OKLaboklab(42.59% 0.0981 -0.1163)
OKLCHoklch(42.59% 0.152 310.2)
XYZxyz(11.3452, 6.7614, 25.1285)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E8B #518B2E
analogous
#3A2E8B #682E8B #8B2E80
triadic
#682E8B #8B682E #2E8B68
tetradic
#682E8B #8B3A2E #518B2E #2E808B
square
#682E8B #8B3A2E #518B2E #2E808B
split-complementary
#682E8B #808B2E #2E8B3A
monochromatic
#23102F #461F5D #682E8B #8A3DB9 #A667CD

Accessibility & contrast

On white

8.93
#682E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#682E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682E8B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E8B#FFFFFF#000000##FFFFFF
##682E8B1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#214A89
Tritanopia (blue-blind)
#634158
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682e8b;
/* rgb */ color: rgb(104, 46, 139);
/* oklch */ color: oklch(42.6% 0.152 310.2);
Tailwind
colors: {
  custom: {
    50: '#966bad',
    500: '#682e8b',
    950: '#000000',
  },
}
SCSS
$custom: #682e8b;
$custom-light: #966bad;
$custom-dark: #000000;
JSON
{
  "hex": "#682e8b",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 277.419,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42588,
    "c": 0.15217,
    "h": 310.2
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#682E8B
secondary
#80B361
accent
#DA4E83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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