#682D7E#682D7E

#682D7E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.6% C 0.140 H 315.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#682D7E
RGBrgb(104, 45, 126)
HSLhsl(284, 47%, 34%)
HSVhsv(284, 64%, 49%)
CMYKcmyk(17.5%, 64.3%, 0%, 50.6%)
CIE-LABlab(30.22, 40.01, -34.76)
CIE-LCHlch(30.22, 53.01, 319.02°)
OKLaboklab(41.57% 0.0999 -0.0974)
OKLCHoklch(41.57% 0.14 315.7)
XYZxyz(10.4126, 6.3265, 20.4073)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D7E #437E2D
analogous
#3F2D7E #682D7E #7E2D6B
triadic
#682D7E #7E682D #2D7E68
tetradic
#682D7E #7E3F2D #437E2D #2D6B7E
square
#682D7E #7E3F2D #437E2D #2D6B7E
split-complementary
#682D7E #6B7E2D #2D7E3F
monochromatic
#1E0D24 #431D51 #682D7E #8D3DAB #AA5FC6

Accessibility & contrast

On white

9.27
#682D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#682D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D7E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D7E#FFFFFF#000000##FFFFFF
##682D7E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124480
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#673B51
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #682d7e;
/* rgb */ color: rgb(104, 45, 126);
/* oklch */ color: oklch(41.6% 0.140 315.7);
Tailwind
colors: {
  custom: {
    50: '#966aa4',
    500: '#682d7e',
    950: '#000000',
  },
}
SCSS
$custom: #682d7e;
$custom-light: #966aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#682d7e",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 283.704,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41567,
    "c": 0.13952,
    "h": 315.7
  },
  "luminance": 0.06326
}

Semantic roles & 50–950 ramp

primary
#682D7E
secondary
#71AC5A
accent
#D75175
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #682D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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