#682E87#682E87

#682E87 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.148 H 311.7°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#682E87
RGBrgb(104, 46, 135)
HSLhsl(279, 49%, 35%)
HSVhsv(279, 66%, 53%)
CMYKcmyk(23%, 65.9%, 0%, 47.1%)
CIE-LABlab(30.99, 41.56, -39.15)
CIE-LCHlch(30.99, 57.09, 316.70°)
OKLaboklab(42.31% 0.0984 -0.1103)
OKLCHoklch(42.31% 0.148 311.7)
XYZxyz(11.0583, 6.6466, 23.6174)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E87 #4D872E
analogous
#3B2E87 #682E87 #872E79
triadic
#682E87 #87682E #2E8768
tetradic
#682E87 #873B2E #4D872E #2E7987
square
#682E87 #873B2E #4D872E #2E7987
split-complementary
#682E87 #79872E #2E873B
monochromatic
#220F2C #451E59 #682E87 #8B3EB5 #A765CA

Accessibility & contrast

On white

9.02
#682E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#682E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682E87
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E87#FFFFFF#000000##FFFFFF
##682E871.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#264A85
Tritanopia (blue-blind)
#643F56
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682e87;
/* rgb */ color: rgb(104, 46, 135);
/* oklch */ color: oklch(42.3% 0.148 311.7);
Tailwind
colors: {
  custom: {
    50: '#966baa',
    500: '#682e87',
    950: '#000000',
  },
}
SCSS
$custom: #682e87;
$custom-light: #966baa;
$custom-dark: #000000;
JSON
{
  "hex": "#682e87",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 279.101,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.14779,
    "h": 311.7
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#682E87
secondary
#7CB160
accent
#D94F7F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682E87

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

Preview Lab → · Contrast checker → · Palette generator →

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