#682F8A#682F8A

#682F8A is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.150 H 310.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#682F8A
RGBrgb(104, 47, 138)
HSLhsl(278, 49%, 36%)
HSVhsv(278, 66%, 54%)
CMYKcmyk(24.6%, 65.9%, 0%, 45.9%)
CIE-LABlab(31.37, 41.75, -40.39)
CIE-LCHlch(31.37, 58.09, 315.94°)
OKLaboklab(42.65% 0.097 -0.1139)
OKLCHoklch(42.65% 0.15 310.4)
XYZxyz(11.3120, 6.8113, 24.7586)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F8A #518A2F
analogous
#3B2F8A #682F8A #8A2F7F
triadic
#682F8A #8A682F #2F8A68
tetradic
#682F8A #8A3B2F #518A2F #2F7F8A
square
#682F8A #8A3B2F #518A2F #2F7F8A
split-complementary
#682F8A #7F8A2F #2F8A3B
monochromatic
#23102F #461F5C #682F8A #8A3FB8 #A668CC

Accessibility & contrast

On white

8.89
#682F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#682F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F8A
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F8A#FFFFFF#000000##FFFFFF
##682F8A1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#244B88
Tritanopia (blue-blind)
#644158
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682f8a;
/* rgb */ color: rgb(104, 47, 138);
/* oklch */ color: oklch(42.6% 0.150 310.4);
Tailwind
colors: {
  custom: {
    50: '#966bad',
    500: '#682f8a',
    950: '#000000',
  },
}
SCSS
$custom: #682f8a;
$custom-light: #966bad;
$custom-dark: #000000;
JSON
{
  "hex": "#682f8a",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 277.582,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4265,
    "c": 0.14962,
    "h": 310.4
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#682F8A
secondary
#80B362
accent
#D94F83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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