#682A8F#682A8F

#682A8F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.162 H 309.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#682A8F
RGBrgb(104, 42, 143)
HSLhsl(277, 55%, 36%)
HSVhsv(277, 71%, 56%)
CMYKcmyk(27.3%, 70.6%, 0%, 43.9%)
CIE-LABlab(30.84, 45.37, -44.35)
CIE-LCHlch(30.84, 63.45, 315.66°)
OKLaboklab(42.38% 0.1025 -0.1255)
OKLCHoklch(42.38% 0.162 309.2)
XYZxyz(11.4938, 6.5824, 26.6463)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A8F #518F2A
analogous
#362A8F #682A8F #8F2A84
triadic
#682A8F #8F682A #2A8F68
tetradic
#682A8F #8F362A #518F2A #2A848F
square
#682A8F #8F362A #518F2A #2A848F
split-complementary
#682A8F #848F2A #2A8F36
monochromatic
#230E30 #461C60 #682A8F #8A38BE #A662D1

Accessibility & contrast

On white

9.07
#682A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#682A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A8F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A8F#FFFFFF#000000##FFFFFF
##682A8F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#16498D
Tritanopia (blue-blind)
#624059
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682a8f;
/* rgb */ color: rgb(104, 42, 143);
/* oklch */ color: oklch(42.4% 0.162 309.2);
Tailwind
colors: {
  custom: {
    50: '#9769b0',
    500: '#682a8f',
    950: '#000000',
  },
}
SCSS
$custom: #682a8f;
$custom-light: #9769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#682a8f",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 276.832,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42376,
    "c": 0.16202,
    "h": 309.2
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#682A8F
secondary
#80B75E
accent
#DE4A83
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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