#682A97#682A97

#682A97 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.171 H 306.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#682A97
RGBrgb(104, 42, 151)
HSLhsl(274, 56%, 38%)
HSVhsv(274, 72%, 59%)
CMYKcmyk(31.1%, 72.2%, 0%, 40.8%)
CIE-LABlab(31.42, 47.26, -48.31)
CIE-LCHlch(31.42, 67.58, 314.37°)
OKLaboklab(42.98% 0.1013 -0.1371)
OKLCHoklch(42.98% 0.171 306.5)
XYZxyz(12.1216, 6.8335, 29.9526)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A97 #59972A
analogous
#312A97 #682A97 #972A90
triadic
#682A97 #97682A #2A9768
tetradic
#682A97 #97312A #59972A #2A9097
square
#682A97 #97312A #59972A #2A9097
split-complementary
#682A97 #90972A #2A9731
monochromatic
#260F37 #471D67 #682A97 #8937C7 #A567D5

Accessibility & contrast

On white

8.87
#682A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#682A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A97
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A97#FFFFFF#000000##FFFFFF
##682A971.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#014A95
Tritanopia (blue-blind)
#60435E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682a97;
/* rgb */ color: rgb(104, 42, 151);
/* oklch */ color: oklch(43.0% 0.171 306.5);
Tailwind
colors: {
  custom: {
    50: '#9769b6',
    500: '#682a97',
    950: '#000000',
  },
}
SCSS
$custom: #682a97;
$custom-light: #9769b6;
$custom-dark: #000000;
JSON
{
  "hex": "#682a97",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 274.128,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42981,
    "c": 0.17053,
    "h": 306.5
  },
  "luminance": 0.06833
}

Semantic roles & 50–950 ramp

primary
#682A97
secondary
#88BB62
accent
#E04889
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682A97

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

Preview Lab → · Contrast checker → · Palette generator →

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