#682A8E#682A8E

#682A8E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.161 H 309.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#682A8E
RGBrgb(104, 42, 142)
HSLhsl(277, 54%, 36%)
HSVhsv(277, 70%, 56%)
CMYKcmyk(26.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(30.76, 45.14, -43.85)
CIE-LCHlch(30.76, 62.93, 315.83°)
OKLaboklab(42.3% 0.1026 -0.124)
OKLCHoklch(42.3% 0.161 309.6)
XYZxyz(11.4184, 6.5522, 26.2491)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A8E #508E2A
analogous
#362A8E #682A8E #8E2A82
triadic
#682A8E #8E682A #2A8E68
tetradic
#682A8E #8E362A #508E2A #2A828E
square
#682A8E #8E362A #508E2A #2A828E
split-complementary
#682A8E #828E2A #2A8E36
monochromatic
#230E30 #451C5F #682A8E #8B38BD #A662D1

Accessibility & contrast

On white

9.09
#682A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#682A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A8E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A8E#FFFFFF#000000##FFFFFF
##682A8E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#634059
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682a8e;
/* rgb */ color: rgb(104, 42, 142);
/* oklch */ color: oklch(42.3% 0.161 309.6);
Tailwind
colors: {
  custom: {
    50: '#9769b0',
    500: '#682a8e',
    950: '#000000',
  },
}
SCSS
$custom: #682a8e;
$custom-light: #9769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#682a8e",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 277.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42302,
    "c": 0.16096,
    "h": 309.6
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#682A8E
secondary
#7FB65D
accent
#DE4A82
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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