#682F87#682F87

#682F87 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.146 H 311.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#682F87
RGBrgb(104, 47, 135)
HSLhsl(279, 48%, 36%)
HSVhsv(279, 65%, 53%)
CMYKcmyk(23%, 65.2%, 0%, 47.1%)
CIE-LABlab(31.17, 41.05, -38.86)
CIE-LCHlch(31.17, 56.52, 316.57°)
OKLaboklab(42.44% 0.0971 -0.1094)
OKLCHoklch(42.44% 0.146 311.6)
XYZxyz(11.0978, 6.7256, 23.6305)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F87 #4E872F
analogous
#3C2F87 #682F87 #872F7A
triadic
#682F87 #87682F #2F8768
tetradic
#682F87 #873C2F #4E872F #2F7A87
square
#682F87 #873C2F #4E872F #2F7A87
split-complementary
#682F87 #7A872F #2F873C
monochromatic
#220F2C #451F5A #682F87 #8B3FB4 #A766CA

Accessibility & contrast

On white

8.96
#682F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682F87
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F87#FFFFFF#000000##FFFFFF
##682F871.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478A
Deuteranopia (green-blind)
#274A85
Tritanopia (blue-blind)
#644056
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682f87;
/* rgb */ color: rgb(104, 47, 135);
/* oklch */ color: oklch(42.4% 0.146 311.6);
Tailwind
colors: {
  custom: {
    50: '#966baa',
    500: '#682f87',
    950: '#000000',
  },
}
SCSS
$custom: #682f87;
$custom-light: #966baa;
$custom-dark: #000000;
JSON
{
  "hex": "#682f87",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 278.864,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42442,
    "c": 0.1463,
    "h": 311.6
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#682F87
secondary
#7DB161
accent
#D85080
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682F87

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

Preview Lab → · Contrast checker → · Palette generator →

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