#682D97#682D97

#682D97 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.167 H 306.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#682D97
RGBrgb(104, 45, 151)
HSLhsl(273, 54%, 38%)
HSVhsv(273, 70%, 59%)
CMYKcmyk(31.1%, 70.2%, 0%, 40.8%)
CIE-LABlab(31.93, 45.84, -47.49)
CIE-LCHlch(31.93, 66.01, 313.99°)
OKLaboklab(43.34% 0.0981 -0.1348)
OKLCHoklch(43.34% 0.167 306.1)
XYZxyz(12.2320, 7.0543, 29.9894)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D97 #5C972D
analogous
#332D97 #682D97 #972D91
triadic
#682D97 #97682D #2D9768
tetradic
#682D97 #97332D #5C972D #2D9197
square
#682D97 #97332D #5C972D #2D9197
split-complementary
#682D97 #91972D #2D9733
monochromatic
#271139 #481F68 #682D97 #883CC5 #A56BD3

Accessibility & contrast

On white

8.71
#682D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#682D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D97
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D97#FFFFFF#000000##FFFFFF
##682D971.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#0A4B95
Tritanopia (blue-blind)
#60455E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #682d97;
/* rgb */ color: rgb(104, 45, 151);
/* oklch */ color: oklch(43.3% 0.167 306.1);
Tailwind
colors: {
  custom: {
    50: '#976bb6',
    500: '#682d97',
    950: '#000000',
  },
}
SCSS
$custom: #682d97;
$custom-light: #976bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#682d97",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 273.396,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43341,
    "c": 0.16668,
    "h": 306.1
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#682D97
secondary
#8BBA66
accent
#DD4A8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682D97

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

Preview Lab → · Contrast checker → · Palette generator →

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