#682D9F#682D9F

#682D9F is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.175 H 303.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#682D9F
RGBrgb(104, 45, 159)
HSLhsl(271, 56%, 40%)
HSVhsv(271, 72%, 62%)
CMYKcmyk(34.6%, 71.7%, 0%, 37.6%)
CIE-LABlab(32.53, 47.79, -51.38)
CIE-LCHlch(32.53, 70.17, 312.93°)
OKLaboklab(43.96% 0.0969 -0.1462)
OKLCHoklch(43.96% 0.175 303.5)
XYZxyz(12.9039, 7.3230, 33.5278)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D9F #649F2D
analogous
#2F2D9F #682D9F #9F2D9D
triadic
#682D9F #9F682D #2D9F68
tetradic
#682D9F #9F2F2D #649F2D #2D9D9F
square
#682D9F #9F2F2D #649F2D #2D9D9F
split-complementary
#682D9F #9D9F2D #2D9F2F
monochromatic
#2A1240 #49206F #682D9F #8740C9 #A570D6

Accessibility & contrast

On white

8.52
#682D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682D9F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D9F#FFFFFF#000000##FFFFFF
##682D9F1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#5D4863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682d9f;
/* rgb */ color: rgb(104, 45, 159);
/* oklch */ color: oklch(44.0% 0.175 303.5);
Tailwind
colors: {
  custom: {
    50: '#986bbc',
    500: '#682d9f',
    950: '#000000',
  },
}
SCSS
$custom: #682d9f;
$custom-light: #986bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#682d9f",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 271.053,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.17538,
    "h": 303.5
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #682D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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