#682A7F#682A7F

#682A7F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.2% C 0.145 H 315.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#682A7F
RGBrgb(104, 42, 127)
HSLhsl(284, 50%, 33%)
HSVhsv(284, 67%, 50%)
CMYKcmyk(18.1%, 66.9%, 0%, 50.2%)
CIE-LABlab(29.74, 41.73, -36.16)
CIE-LCHlch(29.74, 55.22, 319.09°)
OKLaboklab(41.24% 0.1037 -0.1015)
OKLCHoklch(41.24% 0.145 315.6)
XYZxyz(10.3670, 6.1317, 20.7120)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A7F #417F2A
analogous
#3D2A7F #682A7F #7F2A6B
triadic
#682A7F #7F682A #2A7F68
tetradic
#682A7F #7F3D2A #417F2A #2A6B7F
square
#682A7F #7F3D2A #417F2A #2A6B7F
split-complementary
#682A7F #6B7F2A #2A7F3D
monochromatic
#1D0C23 #421B51 #682A7F #8E39AD #AB5BC9

Accessibility & contrast

On white

9.43
#682A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#682A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A7F
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A7F#FFFFFF#000000##FFFFFF
##682A7F1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064282
Deuteranopia (green-blind)
#29487D
Tritanopia (blue-blind)
#663A50
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #682a7f;
/* rgb */ color: rgb(104, 42, 127);
/* oklch */ color: oklch(41.2% 0.145 315.6);
Tailwind
colors: {
  custom: {
    50: '#9668a4',
    500: '#682a7f',
    950: '#000000',
  },
}
SCSS
$custom: #682a7f;
$custom-light: #9668a4;
$custom-dark: #000000;
JSON
{
  "hex": "#682a7f",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 283.765,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41241,
    "c": 0.1451,
    "h": 315.6
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#682A7F
secondary
#6EAE57
accent
#DA4E74
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #682A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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