#682D9E#682D9E

#682D9E is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.174 H 303.8°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#682D9E
RGBrgb(104, 45, 158)
HSLhsl(271, 56%, 40%)
HSVhsv(271, 72%, 62%)
CMYKcmyk(34.2%, 71.5%, 0%, 38%)
CIE-LABlab(32.45, 47.55, -50.90)
CIE-LCHlch(32.45, 69.65, 313.05°)
OKLaboklab(43.88% 0.097 -0.1448)
OKLCHoklch(43.88% 0.174 303.8)
XYZxyz(12.8174, 7.2885, 33.0727)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D9E #639E2D
analogous
#2F2D9E #682D9E #9E2D9C
triadic
#682D9E #9E682D #2D9E68
tetradic
#682D9E #9E2F2D #639E2D #2D9C9E
square
#682D9E #9E2F2D #639E2D #2D9C9E
split-complementary
#682D9E #9C9E2D #2D9E2F
monochromatic
#29123F #491F6E #682D9E #8740C9 #A56FD6

Accessibility & contrast

On white

8.54
#682D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#682D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D9E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D9E#FFFFFF#000000##FFFFFF
##682D9E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#5D4862
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682d9e;
/* rgb */ color: rgb(104, 45, 158);
/* oklch */ color: oklch(43.9% 0.174 303.8);
Tailwind
colors: {
  custom: {
    50: '#986bbb',
    500: '#682d9e',
    950: '#000000',
  },
}
SCSS
$custom: #682d9e;
$custom-light: #986bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#682d9e",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 271.327,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43881,
    "c": 0.1743,
    "h": 303.8
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#682D9E
secondary
#92BD69
accent
#DF4991
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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