#682A8B#682A8B

#682A8B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.158 H 310.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#682A8B
RGBrgb(104, 42, 139)
HSLhsl(278, 54%, 35%)
HSVhsv(278, 70%, 55%)
CMYKcmyk(25.2%, 69.8%, 0%, 45.5%)
CIE-LABlab(30.55, 44.45, -42.33)
CIE-LCHlch(30.55, 61.38, 316.39°)
OKLaboklab(42.08% 0.1029 -0.1196)
OKLCHoklch(42.08% 0.158 310.7)
XYZxyz(11.1962, 6.4633, 25.0788)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A8B #4D8B2A
analogous
#382A8B #682A8B #8B2A7D
triadic
#682A8B #8B682A #2A8B68
tetradic
#682A8B #8B382A #4D8B2A #2A7D8B
square
#682A8B #8B382A #4D8B2A #2A7D8B
split-complementary
#682A8B #7D8B2A #2A8B38
monochromatic
#220E2D #451C5C #682A8B #8B38BA #A760CF

Accessibility & contrast

On white

9.16
#682A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#682A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A8B
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A8B#FFFFFF#000000##FFFFFF
##682A8B1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#633E57
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682a8b;
/* rgb */ color: rgb(104, 42, 139);
/* oklch */ color: oklch(42.1% 0.158 310.7);
Tailwind
colors: {
  custom: {
    50: '#9769ad',
    500: '#682a8b',
    950: '#000000',
  },
}
SCSS
$custom: #682a8b;
$custom-light: #9769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#682a8b",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 278.351,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42082,
    "c": 0.15777,
    "h": 310.7
  },
  "luminance": 0.06463
}

Semantic roles & 50–950 ramp

primary
#682A8B
secondary
#7CB55C
accent
#DD4B80
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #682A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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