#682E7B#682E7B

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

Color values

HEX#682E7B
RGBrgb(104, 46, 123)
HSLhsl(285, 46%, 33%)
HSVhsv(285, 63%, 48%)
CMYKcmyk(15.4%, 62.6%, 0%, 51.8%)
CIE-LABlab(30.22, 38.83, -32.87)
CIE-LCHlch(30.22, 50.88, 319.75°)
OKLaboklab(41.51% 0.0985 -0.0919)
OKLCHoklch(41.51% 0.135 317)
XYZxyz(10.2605, 6.3275, 19.4159)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E7B #417B2E
analogous
#412E7B #682E7B #7B2E67
triadic
#682E7B #7B682E #2E7B68
tetradic
#682E7B #7B412E #417B2E #2E677B
square
#682E7B #7B412E #417B2E #2E677B
split-complementary
#682E7B #677B2E #2E7B41
monochromatic
#1D0D22 #421D4E #682E7B #8E3FA8 #AB60C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##682E7B#FFFFFF#000000##FFFFFF
##682E7B1.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)
#18447D
Deuteranopia (green-blind)
#304979
Tritanopia (blue-blind)
#673B50
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #682e7b;
/* rgb */ color: rgb(104, 46, 123);
/* oklch */ color: oklch(41.5% 0.135 317.0);
Tailwind
colors: {
  custom: {
    50: '#956aa1',
    500: '#682e7b',
    950: '#000000',
  },
}
SCSS
$custom: #682e7b;
$custom-light: #956aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#682e7b",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 285.195,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41509,
    "c": 0.13473,
    "h": 317
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#682E7B
secondary
#6EAA5B
accent
#D55373
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #682E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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