#682D87#682D87

#682D87 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.149 H 311.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#682D87
RGBrgb(104, 45, 135)
HSLhsl(279, 50%, 35%)
HSVhsv(279, 67%, 53%)
CMYKcmyk(23%, 66.7%, 0%, 47.1%)
CIE-LABlab(30.81, 42.06, -39.45)
CIE-LCHlch(30.81, 57.66, 316.84°)
OKLaboklab(42.18% 0.0996 -0.1111)
OKLCHoklch(42.18% 0.149 311.9)
XYZxyz(11.0197, 6.5694, 23.6045)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D87 #4C872D
analogous
#3B2D87 #682D87 #872D79
triadic
#682D87 #87682D #2D8768
tetradic
#682D87 #873B2D #4C872D #2D7987
square
#682D87 #873B2D #4C872D #2D7987
split-complementary
#682D87 #79872D #2D873B
monochromatic
#210E2B #451E59 #682D87 #8B3CB5 #A763CB

Accessibility & contrast

On white

9.08
#682D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#682D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D87
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D87#FFFFFF#000000##FFFFFF
##682D871.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#254A85
Tritanopia (blue-blind)
#643F56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682d87;
/* rgb */ color: rgb(104, 45, 135);
/* oklch */ color: oklch(42.2% 0.149 311.9);
Tailwind
colors: {
  custom: {
    50: '#966aaa',
    500: '#682d87',
    950: '#000000',
  },
}
SCSS
$custom: #682d87;
$custom-light: #966aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#682d87",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 279.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.14926,
    "h": 311.9
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#682D87
secondary
#7BB25E
accent
#DA4E7E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682D87

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

Preview Lab → · Contrast checker → · Palette generator →

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